Expo fixes

This commit is contained in:
kvakazyambra 2024-05-10 15:59:21 +03:00
parent 7d24fe5598
commit 1e33d18c54
7 changed files with 64 additions and 59 deletions

View File

@ -86,6 +86,7 @@
"Commenting": "Commenting", "Commenting": "Commenting",
"Comments": "Comments", "Comments": "Comments",
"CommentsWithCount": "{count, plural, =0 {{count} comments} one {{count} comment} few {{count} comments} other {{count} comments}}", "CommentsWithCount": "{count, plural, =0 {{count} comments} one {{count} comment} few {{count} comments} other {{count} comments}}",
"Common feed": "All",
"Communities": "Communities", "Communities": "Communities",
"Community Discussion Rules": "Community Discussion Rules", "Community Discussion Rules": "Community Discussion Rules",
"Community Principles": "Community Principles", "Community Principles": "Community Principles",

View File

@ -31,7 +31,7 @@
"All posts rating": "Рейтинг всех постов", "All posts rating": "Рейтинг всех постов",
"All posts": "Все публикации", "All posts": "Все публикации",
"All topics": "Все темы", "All topics": "Все темы",
"All": "Общая лента", "All": "Все",
"Almost done! Check your email.": "Почти готово! Осталось подтвердить вашу почту.", "Almost done! Check your email.": "Почти готово! Осталось подтвердить вашу почту.",
"Are you sure you want to delete this comment?": "Уверены, что хотите удалить этот комментарий?", "Are you sure you want to delete this comment?": "Уверены, что хотите удалить этот комментарий?",
"Are you sure you want to delete this draft?": "Уверены, что хотите удалить этот черновик?", "Are you sure you want to delete this draft?": "Уверены, что хотите удалить этот черновик?",
@ -90,6 +90,7 @@
"Commenting": "Комментирование", "Commenting": "Комментирование",
"Comments": "Комментарии", "Comments": "Комментарии",
"CommentsWithCount": "{count, plural, =0 {{count} комментариев} one {{count} комментарий} few {{count} комментария} other {{count} комментариев}}", "CommentsWithCount": "{count, plural, =0 {{count} комментариев} one {{count} комментарий} few {{count} комментария} other {{count} комментариев}}",
"Common feed": "Общая лента",
"Communities": "Сообщества", "Communities": "Сообщества",
"Community Discussion Rules": "Правила дискуссий в сообществе", "Community Discussion Rules": "Правила дискуссий в сообществе",
"Community Principles": "Принципы сообщества", "Community Principles": "Принципы сообщества",

View File

@ -13,7 +13,9 @@
&:hover { &:hover {
.shoutCardCover { .shoutCardCover {
transform: scale(1.05); img {
transform: scale(1.1);
}
} }
} }
@ -120,13 +122,10 @@
height: 100%; height: 100%;
object-fit: cover; object-fit: cover;
position: absolute; position: absolute;
transform: scale(1);
transition: transform 0.3s;
width: 100%; width: 100%;
} }
&:hover img {
/* TODO: small zoom on hover */
transform: scaleZ(1.1);
}
} }
.shoutAuthor { .shoutAuthor {

View File

@ -99,6 +99,7 @@ const getMainTopicTitle = (article: Shout, lng: string) => {
const LAYOUT_ASPECT = { const LAYOUT_ASPECT = {
music: styles.aspectRatio1x1, music: styles.aspectRatio1x1,
audio: styles.aspectRatio1x1,
literature: styles.aspectRatio16x9, literature: styles.aspectRatio16x9,
video: styles.aspectRatio16x9, video: styles.aspectRatio16x9,
image: styles.aspectRatio4x3, image: styles.aspectRatio4x3,

View File

@ -40,7 +40,7 @@ export const Sidebar = () => {
> >
<span class={styles.sidebarItemName}> <span class={styles.sidebarItemName}>
<Icon name="feed-all" class={styles.icon} /> <Icon name="feed-all" class={styles.icon} />
{t('All')} {t('Common feed')}
</span> </span>
</a> </a>
</li> </li>

View File

@ -126,7 +126,6 @@ export const Expo = (props: Props) => {
return ( return (
<div class={styles.Expo}> <div class={styles.Expo}>
<Show when={expoShouts().length > 0} fallback={<Loading />}>
<div class="wide-container"> <div class="wide-container">
<ul class={clsx('view-switcher')}> <ul class={clsx('view-switcher')}>
<li class={clsx({ 'view-switcher__item--selected': !props.layout })}> <li class={clsx({ 'view-switcher__item--selected': !props.layout })}>
@ -178,6 +177,10 @@ export const Expo = (props: Props) => {
</ConditionalWrapper> </ConditionalWrapper>
</li> </li>
</ul> </ul>
</div>
<Show when={expoShouts().length > 0} fallback={<Loading />}>
<div class="wide-container">
<div class="row"> <div class="row">
<For each={expoShouts()?.slice(0, LOAD_MORE_PAGE_SIZE)}> <For each={expoShouts()?.slice(0, LOAD_MORE_PAGE_SIZE)}>
{(shout) => ( {(shout) => (

View File

@ -678,7 +678,7 @@ figure {
cursor: default; cursor: default;
&:hover { &:hover {
background: #fff; background: transparent;
} }
} }
} }