mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-09 08:43:37 -05:00
fix(settings): fixed mobile settings padding
This commit is contained in:
parent
dbf681c2e9
commit
62b7ba2e4d
2 changed files with 18 additions and 5 deletions
|
@ -132,7 +132,11 @@ export function GenericSettings({
|
|||
)}
|
||||
{(!isTouchscreenDevice || typeof page === "undefined") && (
|
||||
<div className={styles.sidebar}>
|
||||
<div className={styles.scrollbox}>
|
||||
<div
|
||||
className={styles.scrollbox}
|
||||
data-scroll-offset={
|
||||
isTouchscreenDevice ? "with-padding" : undefined
|
||||
}>
|
||||
<div className={styles.container}>
|
||||
{isTouchscreenDevice && indexHeader}
|
||||
{pages.map((entry, i) =>
|
||||
|
|
|
@ -38,6 +38,14 @@
|
|||
flex-direction: column;
|
||||
background: var(--primary-header);
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
min-height: 100px;
|
||||
width: 4px;
|
||||
background-clip: content-box;
|
||||
border-top: var(--header-height) solid transparent;
|
||||
border-bottom: var(--bottom-navigation-height) solid transparent;
|
||||
}
|
||||
|
||||
.sidebar,
|
||||
.content {
|
||||
background: var(--primary-background);
|
||||
|
@ -48,8 +56,7 @@
|
|||
overflow-y: auto;
|
||||
|
||||
.container {
|
||||
padding: calc(var(--header-height) + 4px) 8px
|
||||
calc(var(--bottom-navigation-height) + 30px);
|
||||
padding: 20px 10px 80px;
|
||||
min-width: 218px;
|
||||
}
|
||||
|
||||
|
@ -63,7 +70,9 @@
|
|||
|
||||
/* Content */
|
||||
.content {
|
||||
padding: 0;
|
||||
::-webkit-scrollbar-thumb {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.scrollbox {
|
||||
overflow: auto;
|
||||
|
@ -71,7 +80,7 @@
|
|||
|
||||
.contentcontainer {
|
||||
max-width: unset !important;
|
||||
padding: 72px 12px var(--bottom-navigation-height) !important;
|
||||
padding: 20px 10px 80px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue