parent
0e6bb81b6a
commit
56a66eca38
|
@ -362,6 +362,7 @@
|
||||||
"Suggest an idea": "Suggest an idea",
|
"Suggest an idea": "Suggest an idea",
|
||||||
"Support Discours": "Support Discours",
|
"Support Discours": "Support Discours",
|
||||||
"Support the project": "Support the project",
|
"Support the project": "Support the project",
|
||||||
|
"Support us": "Support us",
|
||||||
"Terms of use": "Site rules",
|
"Terms of use": "Site rules",
|
||||||
"Text checking": "Text checking",
|
"Text checking": "Text checking",
|
||||||
"Thank you": "Thank you",
|
"Thank you": "Thank you",
|
||||||
|
|
|
@ -382,6 +382,7 @@
|
||||||
"Suggest an idea": "Предложить идею",
|
"Suggest an idea": "Предложить идею",
|
||||||
"Support Discours": "Поддержите Дискурс",
|
"Support Discours": "Поддержите Дискурс",
|
||||||
"Support the project": "Поддержать проект",
|
"Support the project": "Поддержать проект",
|
||||||
|
"Support us": "Помочь журналу",
|
||||||
"Terms of use": "Правила сайта",
|
"Terms of use": "Правила сайта",
|
||||||
"Text checking": "Проверка текста",
|
"Text checking": "Проверка текста",
|
||||||
"Thank you": "Благодарности",
|
"Thank you": "Благодарности",
|
||||||
|
|
|
@ -4,10 +4,6 @@
|
||||||
padding: 0 0 4rem;
|
padding: 0 0 4rem;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
|
||||||
.navigation {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.showMore {
|
.showMore {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -205,6 +205,7 @@
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
min-width: 300px;
|
min-width: 300px;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
& > li {
|
& > li {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
|
@ -203,6 +203,10 @@ export const Feed = (props: Props) => {
|
||||||
)
|
)
|
||||||
const ogTitle = t('Feed')
|
const ogTitle = t('Feed')
|
||||||
|
|
||||||
|
const myPopupProps = {
|
||||||
|
horizontalAnchor: 'right',
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class="wide-container feed">
|
<div class="wide-container feed">
|
||||||
<Meta name="descprition" content={description} />
|
<Meta name="descprition" content={description} />
|
||||||
|
@ -256,6 +260,7 @@ export const Feed = (props: Props) => {
|
||||||
<div class={styles.dropdowns}>
|
<div class={styles.dropdowns}>
|
||||||
<Show when={searchParams().by && searchParams().by !== 'publish_date'}>
|
<Show when={searchParams().by && searchParams().by !== 'publish_date'}>
|
||||||
<DropDown
|
<DropDown
|
||||||
|
popupProps={{ horizontalAnchor: 'right' }}
|
||||||
options={periods}
|
options={periods}
|
||||||
currentOption={currentPeriod()}
|
currentOption={currentPeriod()}
|
||||||
triggerCssClass={styles.periodSwitcher}
|
triggerCssClass={styles.periodSwitcher}
|
||||||
|
@ -263,6 +268,7 @@ export const Feed = (props: Props) => {
|
||||||
/>
|
/>
|
||||||
</Show>
|
</Show>
|
||||||
<DropDown
|
<DropDown
|
||||||
|
popupProps={{ horizontalAnchor: 'right' }}
|
||||||
options={visibilities}
|
options={visibilities}
|
||||||
currentOption={currentVisibility()}
|
currentOption={currentVisibility()}
|
||||||
triggerCssClass={styles.periodSwitcher}
|
triggerCssClass={styles.periodSwitcher}
|
||||||
|
|
|
@ -8,3 +8,7 @@
|
||||||
transform: rotate(180deg);
|
transform: rotate(180deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.active {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ export type Option = {
|
||||||
|
|
||||||
type Props<TOption> = {
|
type Props<TOption> = {
|
||||||
class?: string
|
class?: string
|
||||||
popupProps?: PopupProps
|
popupProps?: Partial<PopupProps>
|
||||||
options: TOption[]
|
options: TOption[]
|
||||||
currentOption: TOption
|
currentOption: TOption
|
||||||
triggerCssClass?: string
|
triggerCssClass?: string
|
||||||
|
@ -56,9 +56,12 @@ export const DropDown = <TOption extends Option = Option>(props: Props<TOption>)
|
||||||
onVisibilityChange={(isVisible) => setIsPopupVisible(isVisible)}
|
onVisibilityChange={(isVisible) => setIsPopupVisible(isVisible)}
|
||||||
{...props.popupProps}
|
{...props.popupProps}
|
||||||
>
|
>
|
||||||
<For each={props.options.filter((p) => p.value !== props.currentOption.value)}>
|
<For each={props.options}>
|
||||||
{(option) => (
|
{(option) => (
|
||||||
<div class="link" onClick={() => props.onChange(option)}>
|
<div
|
||||||
|
class={clsx('link', { [styles.active]: props.currentOption.value === option.value })}
|
||||||
|
onClick={() => props.onChange(option)}
|
||||||
|
>
|
||||||
{option.title}
|
{option.title}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user