mirror of
https://github.com/artegoser/pimi-launcher.git
synced 2024-11-05 20:13:59 +03:00
fix: select styles
This commit is contained in:
parent
9738b6349a
commit
12626badce
4 changed files with 13 additions and 4 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
})
|
||||
}}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue