UI improvements.
This commit is contained in:
parent
c39cc45f6c
commit
73173a603e
|
@ -17,6 +17,14 @@ export default function CollectionSelection({
|
||||||
color: "#a9a9a9",
|
color: "#a9a9a9",
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
option: (provided) => ({
|
||||||
|
...provided,
|
||||||
|
':before': {
|
||||||
|
content: '""',
|
||||||
|
marginRight: 8,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
|
||||||
menu: (provided) => ({
|
menu: (provided) => ({
|
||||||
...provided,
|
...provided,
|
||||||
border: "solid",
|
border: "solid",
|
||||||
|
@ -33,10 +41,15 @@ export default function CollectionSelection({
|
||||||
input: (provided) => ({
|
input: (provided) => ({
|
||||||
...provided,
|
...provided,
|
||||||
color: lightMode ? "rgb(64, 64, 64)" : "white",
|
color: lightMode ? "rgb(64, 64, 64)" : "white",
|
||||||
|
|
||||||
}),
|
}),
|
||||||
|
|
||||||
singleValue: (provided) => ({
|
singleValue: (provided) => ({
|
||||||
...provided,
|
...provided,
|
||||||
|
':before': {
|
||||||
|
content: '""',
|
||||||
|
marginRight: 8,
|
||||||
|
},
|
||||||
color: lightMode ? "rgb(64, 64, 64)" : "white",
|
color: lightMode ? "rgb(64, 64, 64)" : "white",
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
@ -59,6 +72,7 @@ export default function CollectionSelection({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CreatableSelect
|
<CreatableSelect
|
||||||
|
className="select"
|
||||||
defaultValue={defaultCollection}
|
defaultValue={defaultCollection}
|
||||||
styles={customStyles}
|
styles={customStyles}
|
||||||
onChange={setCollection}
|
onChange={setCollection}
|
||||||
|
|
|
@ -12,6 +12,14 @@ export default function TagSelection({ setTags, tags, tag = [], lightMode }) {
|
||||||
color: "#a9a9a9",
|
color: "#a9a9a9",
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
option: (provided) => ({
|
||||||
|
...provided,
|
||||||
|
':before': {
|
||||||
|
content: '"#"',
|
||||||
|
marginRight: 8,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
|
||||||
multiValueRemove: (provided) => ({
|
multiValueRemove: (provided) => ({
|
||||||
...provided,
|
...provided,
|
||||||
color: "gray",
|
color: "gray",
|
||||||
|
@ -35,6 +43,14 @@ export default function TagSelection({ setTags, tags, tag = [], lightMode }) {
|
||||||
color: lightMode ? "rgb(64, 64, 64)" : "white",
|
color: lightMode ? "rgb(64, 64, 64)" : "white",
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
multiValueLabel: (provided) => ({
|
||||||
|
...provided,
|
||||||
|
':before': {
|
||||||
|
content: '"#"',
|
||||||
|
marginRight: 4,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
|
||||||
control: (provided, state) => ({
|
control: (provided, state) => ({
|
||||||
...provided,
|
...provided,
|
||||||
background: lightMode ? "lightyellow" : "#273949",
|
background: lightMode ? "lightyellow" : "#273949",
|
||||||
|
@ -55,6 +71,7 @@ export default function TagSelection({ setTags, tags, tag = [], lightMode }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CreatableSelect
|
<CreatableSelect
|
||||||
|
className="select"
|
||||||
defaultValue={defaultTags}
|
defaultValue={defaultTags}
|
||||||
styles={customStyles}
|
styles={customStyles}
|
||||||
isMulti
|
isMulti
|
||||||
|
|
|
@ -90,3 +90,7 @@ input:focus {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.select {
|
||||||
|
font-family: "Font Awesome 5 Free"
|
||||||
|
}
|
Ŝarĝante…
Reference in New Issue