Skip to content

Commit 90b0fea

Browse files
committed
Change layout of preferences page on mobiles.
1 parent 27f5820 commit 90b0fea

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

extension/changelog.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": { "major": 7, "minor": 5, "build": 2 },
44
"title": "Beta",
55
"date": false,
6-
"logs": { "features": [], "fixes": [], "changes": [], "removed": [] }
6+
"logs": { "features": [], "fixes": [], "changes": [{ "message": "Change layout of preferences page on mobiles.", "contributor": "TheFoxMan" }], "removed": [] }
77
},
88
{
99
"version": { "major": 7, "minor": 5, "build": 1 },

extension/pages/settings/preferences.css

+27
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ main#preferences > h2 {
55
margin-left: 8em;
66
}
77

8+
body.tt-mobile main#preferences {
9+
margin: auto;
10+
}
11+
12+
body.tt-mobile main#preferences > section {
13+
width: 88%;
14+
}
15+
816
body.tt-mobile .no-mobile {
917
display: none !important;
1018
}
@@ -204,10 +212,19 @@ body.dark #tt-search-list::-webkit-scrollbar-thumb {
204212
padding: 0;
205213
}
206214

215+
body.tt-mobile #preferences > section:first-of-type {
216+
flex-flow: column;
217+
}
218+
207219
#preferences nav {
208220
width: max-content;
209221
}
210222

223+
body.tt-mobile #preferences nav {
224+
width: unset;
225+
overflow: hidden;
226+
}
227+
211228
body.light #preferences nav {
212229
border-right: 1px solid lightgray;
213230
background-color: #f1f1f1;
@@ -224,6 +241,16 @@ body.dark #preferences nav {
224241
margin: 0;
225242
}
226243

244+
body.tt-mobile #preferences nav ul {
245+
display: flex;
246+
flex-flow: row;
247+
overflow: auto;
248+
}
249+
250+
body.tt-mobile #preferences nav ul::-webkit-scrollbar {
251+
display: none;
252+
}
253+
227254
#preferences nav ul > li {
228255
padding: 7px;
229256
border-bottom: 1px solid lightgray;

extension/scripts/global/functions/pages.css

+5-1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ body.tt-unscrollable {
9191

9292
/* General pages */
9393

94+
body.tt-mobile main {
95+
margin: auto;
96+
}
97+
9498
main > h2 {
9599
text-align: center;
96100
}
@@ -107,7 +111,7 @@ body:not(.tt-mobile) main > section {
107111
}
108112

109113
body.tt-mobile main > section {
110-
width: 95%;
114+
width: 88%;
111115
}
112116

113117
body.light main > section {

0 commit comments

Comments
 (0)