Skip to content

Commit 40b0b6a

Browse files
authored
Merge pull request #1653 from pom2ter/better-spacing
fix(frontend): better spacing for sidebar and messages
2 parents ba35086 + 409d7aa commit 40b0b6a

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

modules/core/site.css

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ body {
1515
display: grid;
1616
width: 100%;
1717
grid-template-areas: "nav main";
18-
grid-template-columns: var(--nav-size) 1fr;
18+
grid-template-columns: calc(var(--nav-size) - 40px) 1fr;
1919
grid-template-rows: auto;
2020
transition: all 0.1s linear;
2121
}
@@ -404,7 +404,7 @@ button {
404404
background-color: #fff;
405405
padding-right: 15px;
406406
padding-bottom: 40px;
407-
width: calc(var(--nav-size) - 20px);
407+
width: calc(var(--nav-size) - 60px);
408408
min-height: 100vh;
409409
height: 100%;
410410
padding-top: 20px;
@@ -424,6 +424,7 @@ button {
424424
border-radius: var(--bs-border-radius);
425425
transition: all linear 0.3s;
426426
position: relative;
427+
white-space: nowrap;
427428
}
428429
.inner_list li {
429430
margin: 2px;
@@ -1032,22 +1033,21 @@ div.unseen,
10321033
.mobile .msg_text {
10331034
white-space: nowrap !important;
10341035
width: 100%;
1035-
max-width: 480px !important;
1036+
max-width: 768px !important;
10361037
word-break: break-all;
10371038
word-wrap: break-word;
10381039
font-size: 100%;
10391040
}
10401041
.mobile .msg_controls {
1041-
background: linear-gradient(180deg, #fff, #fff, #f7f2ef) !important;
10421042
z-index: 1000;
10431043
position: fixed;
1044-
right: -10px;
1044+
right: 0px;
10451045
height: 54px;
10461046
font-size: 115%;
10471047
padding-left: 5px;
10481048
padding-top: 5px;
10491049
top: 1px;
1050-
left: 70px !important;
1050+
left: 60px !important;
10511051
}
10521052
@media (orientation: landscape) {
10531053
.mobile .msg_controls {
@@ -1140,10 +1140,11 @@ div.unseen,
11401140
}
11411141
.mobile .checkbox_cell {
11421142
width: 35px;
1143+
padding-top: 15px !important;
11431144
}
11441145
.mobile .checkbox_cell label {
1145-
width: 30px;
1146-
height: 30px;
1146+
width: 20px;
1147+
height: 20px;
11471148
}
11481149
.mobile .github_para {
11491150
white-space: normal !important;

modules/core/site.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -976,15 +976,15 @@ function Message_List() {
976976
prevUrl = new URL(prevSubject.prop('href'));
977977
prevUrl.searchParams.set('list_parent', listPath);
978978
const subject = prevSubject.text().substring(0, 50) + (prevSubject.text().length > 50 ? '...' : '');
979-
const plink = '<a class="plink" href="'+prevUrl.href+'"><i class="prevnext bi bi-arrow-left-square-fill"></i> '+subject+'</a>';
979+
const plink = '<a class="plink" href="'+prevUrl.href+'"><i class="prevnext bi bi-arrow-up-square-fill"></i> '+subject+'</a>';
980980
$('<tr class="prev"><th colspan="2">'+plink+'</th></tr>').insertAfter(target);
981981
}
982982
if (next) {
983983
const nextSubject = $(next['0']).find('.subject a');
984984
nextUrl = new URL(nextSubject.prop('href'));
985985
nextUrl.searchParams.set('list_parent', listPath);
986986
const subject = nextSubject.text().substring(0, 50) + (nextSubject.text().length > 50 ? '...' : '');
987-
const nlink = '<a class="nlink" href="'+nextUrl.href+'"><i class="prevnext bi bi-arrow-right-square-fill"></i> '+subject+'</a>';
987+
const nlink = '<a class="nlink" href="'+nextUrl.href+'"><i class="prevnext bi bi-arrow-down-square-fill"></i> '+subject+'</a>';
988988
$('<tr class="next"><th colspan="2">'+nlink+'</th></tr>').insertAfter(target.siblings('.prev')[0] || target);
989989
}
990990
if (cb) {

0 commit comments

Comments
 (0)