Skip to content

Commit 88bc7c8

Browse files
Move settings to more menu on smaller mobile devices (FreeTubeApp#7506)
1 parent bfa38f5 commit 88bc7c8

File tree

4 files changed

+46
-1
lines changed

4 files changed

+46
-1
lines changed

src/renderer/components/SideNav/SideNav.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,3 +249,17 @@
249249
inline-size: 100%;
250250
}
251251
}
252+
253+
@media only screen and (width <= 400px) {
254+
/* Hide settings so that they appear in the more dropdown on smaller screens */
255+
.smallMobileOnlyHidden {
256+
display: none;
257+
}
258+
}
259+
260+
@media only screen and (width > 400px) {
261+
.smallMobileOnlyHidden {
262+
display: block;
263+
}
264+
}
265+

src/renderer/components/SideNav/SideNav.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
</router-link>
153153
<hr>
154154
<router-link
155-
class="navOption mobileShow"
155+
class="navOption mobileShow smallMobileOnlyHidden"
156156
role="button"
157157
to="/settings"
158158
:title="settingsTitle"

src/renderer/components/SideNavMoreOptions/SideNavMoreOptions.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,16 @@
8282
block-size: 1.3em;
8383
}
8484
}
85+
86+
@media only screen and (width <= 400px) {
87+
/* Show settings in more dropdown on smaller screens */
88+
.smallMobileOnlyShow {
89+
display: block;
90+
}
91+
}
92+
93+
@media only screen and (width > 400px) {
94+
.smallMobileOnlyShow {
95+
display: none;
96+
}
97+
}

src/renderer/components/SideNavMoreOptions/SideNavMoreOptions.vue

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,24 @@
110110
{{ $t("About.About") }}
111111
</p>
112112
</router-link>
113+
<router-link
114+
class="navOption smallMobileOnlyShow"
115+
:title="$t('Settings.Settings')"
116+
:aria-label="hideLabelsSideBar ? $t('Settings.Settings') : null"
117+
to="/settings"
118+
>
119+
<FontAwesomeIcon
120+
:icon="['fas', 'sliders-h']"
121+
class="navIcon"
122+
:class="applyNavIconExpand"
123+
/>
124+
<p
125+
id="settingsNavLabel"
126+
class="navLabel"
127+
>
128+
{{ $t("Settings.Settings") }}
129+
</p>
130+
</router-link>
113131
</div>
114132
<router-link
115133
class="navOption mobileShow"

0 commit comments

Comments
 (0)