fix: select styles

This commit is contained in:
Artemy 2023-06-21 15:37:49 +03:00
parent 9738b6349a
commit 12626badce
4 changed files with 13 additions and 4 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "pimi-launcher",
"version": "1.2.0-alpha",
"version": "1.2.1-alpha",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "pimi-launcher",
"version": "1.2.0-alpha",
"version": "1.2.1-alpha",
"hasInstallScript": true,
"dependencies": {
"@electron-toolkit/preload": "^2.0.0",

View file

@ -1,6 +1,6 @@
{
"name": "pimi-launcher",
"version": "1.2.0-alpha",
"version": "1.2.1-alpha",
"description": "Modern Minecraft Launcher",
"main": "./out/main/index.js",
"author": "artegoser",

View file

@ -6,6 +6,13 @@
@apply bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500;
}
.react-select__control {
@apply grid grid-cols-2 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-0.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 !important;
}
.react-select__indicators {
@apply justify-end !important;
}
::-webkit-scrollbar {
width: 0;
}

View file

@ -58,6 +58,8 @@ function Main() {
</div>
<div>
<Select
isLoading={started && !gameStarted}
classNamePrefix="react-select"
onChange={(e) => {
setVersion(versions[e.value])
}}
@ -77,7 +79,7 @@ function Main() {
}),
option: (styles, { data, isFocused }) => ({
...styles,
backgroundColor: isFocused ? '#c9d2e7' : data.installed ? '#cccccc' : 'white'
backgroundColor: isFocused ? '#eaeaea' : data.installed ? '#f1f1f1' : 'white'
})
}}
/>