mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-07 00:34:41 +00:00
refactor: change sort dropdown color
This commit is contained in:
parent
a3d56735ca
commit
e5ca3c7ace
2 changed files with 26 additions and 2 deletions
|
@ -56,13 +56,25 @@ export function BookmarksCategoryPage(props) {
|
||||||
}
|
}
|
||||||
}, [scrollPosition]);
|
}, [scrollPosition]);
|
||||||
|
|
||||||
|
const DropdownTheme = {
|
||||||
|
floating: {
|
||||||
|
target:
|
||||||
|
"w-fit bg-blue-600 enabled:hover:bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-300 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="container pt-2 pb-16 mx-auto sm:pt-4 sm:pb-0">
|
<main className="container pt-2 pb-16 mx-auto sm:pt-4 sm:pb-0">
|
||||||
<div className="flex items-center justify-between px-4 py-2 border-b-2 border-black">
|
<div className="flex items-center justify-between px-4 py-2 border-b-2 border-black">
|
||||||
<h1 className="font-bold text-md sm:text-xl md:text-lg xl:text-xl">
|
<h1 className="font-bold text-md sm:text-xl md:text-lg xl:text-xl">
|
||||||
{props.SectionTitleMapping[props.slug]}
|
{props.SectionTitleMapping[props.slug]}
|
||||||
</h1>
|
</h1>
|
||||||
<Dropdown label={sort.values[selectedSort].name} dismissOnClick={true} arrowIcon={false}>
|
<Dropdown
|
||||||
|
label={sort.values[selectedSort].name}
|
||||||
|
dismissOnClick={true}
|
||||||
|
arrowIcon={false}
|
||||||
|
theme={DropdownTheme}
|
||||||
|
>
|
||||||
{sort.values.map((item, index) => (
|
{sort.values.map((item, index) => (
|
||||||
<Dropdown.Item key={index} onClick={() => setSelectedSort(index)}>
|
<Dropdown.Item key={index} onClick={() => setSelectedSort(index)}>
|
||||||
<span
|
<span
|
||||||
|
|
|
@ -56,13 +56,25 @@ export function FavoritesPage() {
|
||||||
}
|
}
|
||||||
}, [scrollPosition]);
|
}, [scrollPosition]);
|
||||||
|
|
||||||
|
const DropdownTheme = {
|
||||||
|
floating: {
|
||||||
|
target:
|
||||||
|
"w-fit bg-blue-600 enabled:hover:bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-300 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="container pt-2 pb-16 mx-auto sm:pt-4 sm:pb-0">
|
<main className="container pt-2 pb-16 mx-auto sm:pt-4 sm:pb-0">
|
||||||
<div className="flex items-center justify-between px-4 py-2 border-b-2 border-black">
|
<div className="flex items-center justify-between px-4 py-2 border-b-2 border-black">
|
||||||
<h1 className="font-bold text-md sm:text-xl md:text-lg xl:text-xl">
|
<h1 className="font-bold text-md sm:text-xl md:text-lg xl:text-xl">
|
||||||
Избранное
|
Избранное
|
||||||
</h1>
|
</h1>
|
||||||
<Dropdown label={sort.values[selectedSort].name} dismissOnClick={true} arrowIcon={false}>
|
<Dropdown
|
||||||
|
label={sort.values[selectedSort].name}
|
||||||
|
dismissOnClick={true}
|
||||||
|
arrowIcon={false}
|
||||||
|
theme={DropdownTheme}
|
||||||
|
>
|
||||||
{sort.values.map((item, index) => (
|
{sort.values.map((item, index) => (
|
||||||
<Dropdown.Item key={index} onClick={() => setSelectedSort(index)}>
|
<Dropdown.Item key={index} onClick={() => setSelectedSort(index)}>
|
||||||
<span
|
<span
|
||||||
|
|
Loading…
Add table
Reference in a new issue