mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
style(console): scale the sidebar and hide mobile tab tracks
Narrow the sidebar proportionally while retaining enough room for both locales. Keep mobile navigation swipeable without a visible horizontal scrollbar.
This commit is contained in:
1 parent
7b44059e28
commit
ba95456e67
1 file changed
+8
-1
@@ -779,7 +779,9 @@ async function onDeleteGroup(group: Group): Promise<void> {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.console-shell {
|
.console-shell {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 264px minmax(0, 1fr);
|
/* The sidebar narrows with the window (264px from ~1260px down to 208px),
|
||||||
|
wide enough for every label in either language. */
|
||||||
|
grid-template-columns: clamp(208px, 21vw, 264px) minmax(0, 1fr);
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background: rgb(var(--wh-bg));
|
background: rgb(var(--wh-bg));
|
||||||
color: rgb(var(--wh-text));
|
color: rgb(var(--wh-text));
|
||||||
@@ -1045,6 +1047,11 @@ async function onDeleteGroup(group: Group): Promise<void> {
|
|||||||
border-bottom: 1px solid rgb(var(--wh-border));
|
border-bottom: 1px solid rgb(var(--wh-border));
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem 1rem;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
/* Still swipeable, without a scrollbar under the tabs. */
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
||||||
|
.console-mobile-nav::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
.console-mobile-nav :deep(.rc-tabs) {
|
.console-mobile-nav :deep(.rc-tabs) {
|
||||||
min-width: max-content;
|
min-width: max-content;
|
||||||
|
|||||||
Reference in new issue
Block a user