Feed menu style fixes for mobile

This commit is contained in:
kvakazyambra 2023-09-20 00:02:42 +03:00
parent 9e5841fa77
commit 3b8b9413c0
4 changed files with 45 additions and 13 deletions

View File

@ -1,10 +1,11 @@
.sidebar { .sidebar {
max-height: calc(100vh - 120px); max-height: calc(100vh - 120px);
overflow: auto; overflow: auto;
position: sticky;
top: 120px; top: 120px;
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
position: sticky;
ul > li { ul > li {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
@ -64,6 +65,22 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin: 2em 0; margin: 2em 0;
@include media-breakpoint-down(md) {
margin: 0;
position: absolute;
right: 12px;
}
@include media-breakpoint-down(sm) {
right: 2px;
}
}
.settingsLabel {
@include media-breakpoint-down(sm) {
display: none;
}
} }
a { a {
@ -132,7 +149,8 @@
} }
} }
.feedFilters { .feedFilters,
.subscriptions {
@include media-breakpoint-down(md) { @include media-breakpoint-down(md) {
display: flex; display: flex;
overflow: auto; overflow: auto;
@ -144,6 +162,21 @@
margin-right: 0 !important; margin-right: 0 !important;
} }
} }
&::-webkit-scrollbar {
height: 0;
width: 0;
}
&::-webkit-scrollbar-thumb {
background: none;
}
}
}
.feedFilters {
@include media-breakpoint-down(md) {
margin-bottom: 0 !important;
} }
.sidebarItemName { .sidebarItemName {
@ -152,15 +185,6 @@
} }
.subscriptions { .subscriptions {
@include media-breakpoint-down(md) {
display: flex;
overflow: auto;
li {
margin-right: 3rem !important;
}
}
.icon { .icon {
text-align: center; text-align: center;

View File

@ -173,7 +173,7 @@ export const Sidebar = (props: FeedSidebarProps) => {
<div class={styles.settings}> <div class={styles.settings}>
<a href="/feed/settings"> <a href="/feed/settings">
<Icon name="settings" class={styles.icon} /> <Icon name="settings" class={styles.icon} />
{t('Feed settings')} <span class={styles.settingsLabel}>{t('Feed settings')}</span>
</a> </a>
</div> </div>
</div> </div>

View File

@ -1,5 +1,9 @@
.feedFilter { .feedFilter {
margin: 0.2em 0 4.8rem; margin: 0.2em 0 4.8rem;
@include media-breakpoint-down(md) {
margin-right: 4rem !important;
}
} }
.feedNavigation { .feedNavigation {

View File

@ -777,8 +777,12 @@ figure {
.main-content { .main-content {
flex: 1 100%; flex: 1 100%;
min-height: 90vh; min-height: 90vh;
padding-top: 130px; padding-top: 80px;
position: relative; position: relative;
@include media-breakpoint-up(lg) {
padding-top: 130px;
}
} }
.main-content--no-padding { .main-content--no-padding {