mirror of
https://github.com/artegoser/pimi-launcher.git
synced 2024-11-22 19:36:22 +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",
|
"name": "pimi-launcher",
|
||||||
"version": "1.2.0-alpha",
|
"version": "1.2.1-alpha",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "pimi-launcher",
|
"name": "pimi-launcher",
|
||||||
"version": "1.2.0-alpha",
|
"version": "1.2.1-alpha",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@electron-toolkit/preload": "^2.0.0",
|
"@electron-toolkit/preload": "^2.0.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "pimi-launcher",
|
"name": "pimi-launcher",
|
||||||
"version": "1.2.0-alpha",
|
"version": "1.2.1-alpha",
|
||||||
"description": "Modern Minecraft Launcher",
|
"description": "Modern Minecraft Launcher",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"author": "artegoser",
|
"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;
|
@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 {
|
::-webkit-scrollbar {
|
||||||
width: 0;
|
width: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,6 +58,8 @@ function Main() {
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<Select
|
<Select
|
||||||
|
isLoading={started && !gameStarted}
|
||||||
|
classNamePrefix="react-select"
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
setVersion(versions[e.value])
|
setVersion(versions[e.value])
|
||||||
}}
|
}}
|
||||||
|
@ -77,7 +79,7 @@ function Main() {
|
||||||
}),
|
}),
|
||||||
option: (styles, { data, isFocused }) => ({
|
option: (styles, { data, isFocused }) => ({
|
||||||
...styles,
|
...styles,
|
||||||
backgroundColor: isFocused ? '#c9d2e7' : data.installed ? '#cccccc' : 'white'
|
backgroundColor: isFocused ? '#eaeaea' : data.installed ? '#f1f1f1' : 'white'
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue