mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-07 00:34:41 +00:00
frontend: move theme dialog to bottom left
This commit is contained in:
parent
b9af35ee75
commit
64886347f2
1 changed files with 32 additions and 33 deletions
|
@ -20,14 +20,14 @@ export const ColorPicker = (props) => {
|
||||||
const [mode, setMode] = useState(ui("mode"));
|
const [mode, setMode] = useState(ui("mode"));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<dialog className="active">
|
<dialog className="active left round bottom small" style={{blockSize: "unset"}}>
|
||||||
<h5>Выбор темы</h5>
|
<h5>Выбор темы</h5>
|
||||||
<div className="grid center-align">
|
<div className="grid center-align">
|
||||||
{colors.map((item) => {
|
{colors.map((item) => {
|
||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
key={item.color}
|
key={item.color}
|
||||||
className={`circle small ${item.color} s2`}
|
className={`circle border small ${item.color} s2`}
|
||||||
onClick={() => props.theme(item.hex)}
|
onClick={() => props.theme(item.hex)}
|
||||||
></button>
|
></button>
|
||||||
);
|
);
|
||||||
|
@ -44,7 +44,6 @@ export const ColorPicker = (props) => {
|
||||||
>
|
>
|
||||||
{mode == "light" ? <i>dark_mode</i> : <i>light_mode</i>}
|
{mode == "light" ? <i>dark_mode</i> : <i>light_mode</i>}
|
||||||
</button>
|
</button>
|
||||||
<span className="max"></span>
|
|
||||||
<button
|
<button
|
||||||
className={`circle small transparent `}
|
className={`circle small transparent `}
|
||||||
onClick={() => props.setColorPicker(!props.colorPicker)}
|
onClick={() => props.setColorPicker(!props.colorPicker)}
|
||||||
|
|
Loading…
Add table
Reference in a new issue