Skip to content

Commit a2d4b9c

Browse files
author
Okeanij
committed
Small screens padding made smaller
Material header links upgrade algorithm Version +
1 parent dffd4bd commit a2d4b9c

File tree

7 files changed

+14
-9
lines changed

7 files changed

+14
-9
lines changed

Client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sunengine-client",
3-
"version": "2.4.1",
3+
"version": "2.4.2",
44
"description": "SunEngine - web engine with support of blog, forum and articles functionality",
55
"productName": "SunEngine",
66
"author": "Dmitrij Polianin",

Client/src/css/app.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ $q-field-color: #00c63b;
7575
padding-bottom: $flex-gutter-xl !important;
7676
}
7777

78-
$paddings: (12px 18px 24px);
78+
$paddings: (6px 12px 24px);
7979

8080
@mixin page-paddings-block($size) {
8181
.page-padding {

Client/src/modules/material/Material.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
v-if="showVisitsCount"
7676
class="material__visits material-footer-info-block"
7777
>
78-
<q-icon :name="$iconsSet.Material.visits" class="q-mr-xs" />
78+
<q-icon :name="$iconsSet.Material.visits" class="q-mr-xs" />
7979
{{ material.visitsCount }}
8080
</div>
8181
<div v-if="showDate" class="material__date material-footer-info-block">
@@ -266,12 +266,17 @@ export default {
266266
const router = this.$router;
267267
const successNotify = this.$successNotify.bind(this);
268268
const tl = this.$tl.bind(this);
269+
const allNames = {};
269270
for (const header of headers) {
270271
const link = document.createElement("a");
271272
link.classList.add("header-anchor");
272273
link.classList.add("link");
273-
header.id = encodeURIComponent(header.innerText);
274-
link.href = window.location.href.split("#")[0] + "#" + header.id;
274+
let id = encodeURIComponent(header.innerText);
275+
while(allNames[id])
276+
id = id + "1";
277+
allNames[id] = true;
278+
header.id = id;
279+
link.href = window.location.href.split("#")[0] + "#" + id;
275280
link.addEventListener("click", function(e) {
276281
e.preventDefault();
277282
copyToClipboard(link.href)

README.RU.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
# SunEngine
1212

13-
<a href="#"><img src="https://img.shields.io/static/v1?label=%D0%92%D0%B5%D1%80%D1%81%D0%B8%D1%8F&message=v2.4.1&color=green"></a>
13+
<a href="#"><img src="https://img.shields.io/static/v1?label=%D0%92%D0%B5%D1%80%D1%81%D0%B8%D1%8F&message=v2.4.2&color=green"></a>
1414
<a href="https://sunengine.site"><img src="https://img.shields.io/static/v1?label=%D0%A1%D0%B0%D0%B9%D1%82&message=sunengine.site&color=yellow"></a>
1515
<a href="https://demo.sunengine.site"><img src="https://img.shields.io/static/v1?label=%D0%94%D0%B5%D0%BC%D0%BE&message=demo.sunengine.site&color=yellow"></a>
1616
<a href="https://t.me/SunEngine"><img src="https://img.shields.io/static/v1?label=Telegram&message=@SunEngine&color=success"></a>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Build on modern technologies: AspNet Core, VueJS, Quasar.</h3>
99

1010
# SunEngine
1111

12-
<a href="#"><img src="https://img.shields.io/static/v1?label=Version&message=v2.4.1&color=green"></a>
12+
<a href="#"><img src="https://img.shields.io/static/v1?label=Version&message=v2.4.2&color=green"></a>
1313
<a href="https://sunengine.site"><img src="https://img.shields.io/static/v1?label=Site%20(Ru)&message=sunengine.site&color=yellow"></a>
1414
<a href="https://demo.sunengine.site"><img src="https://img.shields.io/static/v1?label=Demo&message=demo.sunengine.site&color=yellow"></a>
1515
<a href="https://t.me/SunEngine"><img src="https://img.shields.io/static/v1?label=Telegram&message=@SunEngine&color=success"></a>

Server/SunEngine.Cli/SunEngine.Cli.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.1</TargetFramework>
55
<LangVersion>latest</LangVersion>
6-
<Version>2.4.1</Version>
6+
<Version>2.4.2</Version>
77
<Title>SunEngine</Title>
88
<Authors>Dmitrij Polianin</Authors>
99
<Description>Site engine with blog, forum and articles functionalities on Asp.Net Core and Vue.Js.</Description>

Server/SunEngine.Core/SunEngine.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.1</TargetFramework>
5-
<Version>2.4.1</Version>
5+
<Version>2.4.2</Version>
66
<LangVersion>default</LangVersion>
77
</PropertyGroup>
88

0 commit comments

Comments
 (0)