Tabs style fixes

This commit is contained in:
kvakazyambra 2023-06-09 00:53:58 +03:00
parent 4e6d082697
commit 9754a0235d
6 changed files with 25 additions and 53 deletions

View File

@ -151,7 +151,7 @@
"More": "Ещё", "More": "Ещё",
"Most commented": "Комментируемое", "Most commented": "Комментируемое",
"Most read": "Читаемое", "Most read": "Читаемое",
"My feed": "Моя лента", "My feed": "Новое",
"My subscriptions": "Подписки", "My subscriptions": "Подписки",
"Name": "Имя", "Name": "Имя",
"New only": "Только новые", "New only": "Только новые",

View File

@ -486,6 +486,10 @@
} }
} }
} }
a {
border: none;
}
} }
.shoutCardComments, .shoutCardComments,

View File

@ -20,7 +20,7 @@
} }
.item { .item {
margin-right: 2.4rem; margin-right: 2rem;
&.right { &.right {
margin-right: 0; margin-right: 0;

View File

@ -182,37 +182,38 @@ export const InboxView = () => {
</div> </div>
<Show when={chatsToShow}> <Show when={chatsToShow}>
<div class={styles.chatListTypes}> <ul class="view-switcher">
<ul> <li class={clsx({ 'view-switcher__item--selected': !sortByPerToPer() && !sortByGroup() })}>
<li <button
class={clsx({ [styles.selected]: !sortByPerToPer() && !sortByGroup() })}
onClick={() => { onClick={() => {
setSortByPerToPer(false) setSortByPerToPer(false)
setSortByGroup(false) setSortByGroup(false)
}} }}
> >
<span>{t('All')}</span> {t('All')}
</button>
</li> </li>
<li <li class={clsx({ 'view-switcher__item--selected': sortByPerToPer() })}>
class={clsx({ [styles.selected]: sortByPerToPer() })} <button
onClick={() => { onClick={() => {
setSortByPerToPer(true) setSortByPerToPer(true)
setSortByGroup(false) setSortByGroup(false)
}} }}
> >
<span>{t('Personal')}</span> {t('Personal')}
</button>
</li> </li>
<li <li class={clsx({ 'view-switcher__item--selected': sortByGroup() })}>
class={clsx({ [styles.selected]: sortByGroup() })} <button
onClick={() => { onClick={() => {
setSortByGroup(true) setSortByGroup(true)
setSortByPerToPer(false) setSortByPerToPer(false)
}} }}
> >
<span>{t('Groups')}</span> {t('Groups')}
</button>
</li> </li>
</ul> </ul>
</div>
</Show> </Show>
<div class={styles.holder}> <div class={styles.holder}>
<div class={styles.dialogs}> <div class={styles.dialogs}>

View File

@ -90,35 +90,6 @@ main {
padding: 1em 0; padding: 1em 0;
} }
// табы выбора списка
.chatListTypes {
@include font-size(1.7rem);
margin: 16px 0;
ul {
display: flex;
flex-wrap: wrap;
list-style: none;
margin: 0;
padding: 0;
}
li {
margin-right: 1em;
color: #696969;
cursor: pointer;
&.selected {
span {
border-bottom: 3px solid;
font-weight: normal;
color: #000;
}
}
}
}
.conversation { .conversation {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@ -545,13 +545,12 @@ figure {
figcaption { figcaption {
@include font-size(1.2rem); @include font-size(1.2rem);
color: #9fa1a7; color: #9fa1a7;
} }
} }
.view-switcher { .view-switcher {
@include font-size(1.7rem); @include font-size(1.4rem);
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
font-weight: 500; font-weight: 500;
@ -561,12 +560,9 @@ figure {
li { li {
display: inline-block; display: inline-block;
margin-right: 2.4rem; margin-right: 2rem;
margin-bottom: 0.6em; margin-bottom: 0.6em;
@include media-breakpoint-down(md) {
}
&:last-child { &:last-child {
margin-right: 0; margin-right: 0;
} }