Fixed styles
This commit is contained in:
@@ -19,7 +19,7 @@ import { useEffect, useState } from 'react';
|
|||||||
import * as fa6 from 'react-icons/fa6';
|
import * as fa6 from 'react-icons/fa6';
|
||||||
import * as si from 'react-icons/si';
|
import * as si from 'react-icons/si';
|
||||||
import * as vsc from 'react-icons/vsc';
|
import * as vsc from 'react-icons/vsc';
|
||||||
import { textInputClasses } from 'styles';
|
import { selectClasses, textInputClasses } from 'styles';
|
||||||
import type { Application } from 'types';
|
import type { Application } from 'types';
|
||||||
import AddItemModal from '../Shared/AddItemModal';
|
import AddItemModal from '../Shared/AddItemModal';
|
||||||
import SettingsHeader from '../Shared/SettingsHeader';
|
import SettingsHeader from '../Shared/SettingsHeader';
|
||||||
@@ -164,13 +164,28 @@ const ApplicationSettings = () => {
|
|||||||
<Group justify='center'>
|
<Group justify='center'>
|
||||||
<Select
|
<Select
|
||||||
label={'Icon'}
|
label={'Icon'}
|
||||||
className={textInputClasses.settingsItem}
|
className={selectClasses.settingsItem}
|
||||||
classNames={textInputClasses}
|
classNames={{
|
||||||
|
input: selectClasses.menuSelectInput,
|
||||||
|
label: selectClasses.menuSelectLabel,
|
||||||
|
options: selectClasses.menuSelectOptions,
|
||||||
|
option: selectClasses.menuSelectOption,
|
||||||
|
dropdown: selectClasses.dropdown,
|
||||||
|
}}
|
||||||
|
mt={12}
|
||||||
data={Object.keys(allIcons).map((icon) => {
|
data={Object.keys(allIcons).map((icon) => {
|
||||||
return { value: icon, label: icon };
|
return { value: icon, label: icon };
|
||||||
})}
|
})}
|
||||||
|
defaultValue={newApplication.icon}
|
||||||
comboboxProps={{
|
comboboxProps={{
|
||||||
zIndex: 1000,
|
zIndex: 3000,
|
||||||
|
withinPortal: false,
|
||||||
|
}}
|
||||||
|
onChange={(event: any) => {
|
||||||
|
setNewApplication({
|
||||||
|
...newApplication,
|
||||||
|
icon: event,
|
||||||
|
});
|
||||||
}}
|
}}
|
||||||
renderOption={(item: any) => {
|
renderOption={(item: any) => {
|
||||||
const Icon = allIcons[item.option.value];
|
const Icon = allIcons[item.option.value];
|
||||||
@@ -182,6 +197,9 @@ const ApplicationSettings = () => {
|
|||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
searchable
|
searchable
|
||||||
|
maxDropdownHeight={175}
|
||||||
|
onDropdownOpen={() => setIsOpen(true)}
|
||||||
|
onDropdownClose={() => setIsOpen(false)}
|
||||||
/>
|
/>
|
||||||
<TextInput
|
<TextInput
|
||||||
label={'Filter'}
|
label={'Filter'}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import { useDebouncedValue, useDisclosure } from '@mantine/hooks';
|
|||||||
import { useCommonHooks, useMutationAPI } from 'hooks';
|
import { useCommonHooks, useMutationAPI } from 'hooks';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { FiTrash } from 'react-icons/fi';
|
import { FiTrash } from 'react-icons/fi';
|
||||||
import { cardClasses, textInputClasses } from 'styles';
|
import { cardClasses, selectClasses, textInputClasses } from 'styles';
|
||||||
import type { Application } from 'types';
|
import type { Application } from 'types';
|
||||||
import DeleteItemModal from '../Shared/DeleteItemModal';
|
import DeleteItemModal from '../Shared/DeleteItemModal';
|
||||||
|
|
||||||
@@ -170,17 +170,26 @@ function DebouncedApplication({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Group>
|
</Group>
|
||||||
<Group w={'100%'} justify='center'>
|
<Group w={'100%'} justify='space-between'>
|
||||||
<Select
|
<Select
|
||||||
|
w={'48%'}
|
||||||
label={'Icon'}
|
label={'Icon'}
|
||||||
className={textInputClasses.settingsItem}
|
className={selectClasses.settingsItem}
|
||||||
classNames={textInputClasses}
|
classNames={{
|
||||||
|
input: selectClasses.menuSelectInput,
|
||||||
|
label: selectClasses.menuSelectLabel,
|
||||||
|
options: selectClasses.menuSelectOptions,
|
||||||
|
option: selectClasses.menuSelectOption,
|
||||||
|
dropdown: selectClasses.dropdown,
|
||||||
|
}}
|
||||||
|
mt={12}
|
||||||
data={Object.keys(allIcons).map((icon) => {
|
data={Object.keys(allIcons).map((icon) => {
|
||||||
return { value: icon, label: icon };
|
return { value: icon, label: icon };
|
||||||
})}
|
})}
|
||||||
defaultValue={app.icon}
|
defaultValue={app.icon}
|
||||||
comboboxProps={{
|
comboboxProps={{
|
||||||
zIndex: 3000,
|
zIndex: 3000,
|
||||||
|
withinPortal: false,
|
||||||
}}
|
}}
|
||||||
onChange={(event: any) => {
|
onChange={(event: any) => {
|
||||||
setUpdate({
|
setUpdate({
|
||||||
@@ -198,6 +207,7 @@ function DebouncedApplication({
|
|||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
searchable
|
searchable
|
||||||
|
maxDropdownHeight={175}
|
||||||
onDropdownOpen={() => setIsOpen(true)}
|
onDropdownOpen={() => setIsOpen(true)}
|
||||||
onDropdownClose={() => setIsOpen(false)}
|
onDropdownClose={() => setIsOpen(false)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ function SettingsHeader({
|
|||||||
mt={0}
|
mt={0}
|
||||||
justify='center'
|
justify='center'
|
||||||
pos={'absolute'}
|
pos={'absolute'}
|
||||||
style={{ backdropFilter: 'blur(10px) brightness(.75)', zIndex: 250 }}
|
style={{ backdropFilter: 'blur(10px) brightness(.75)', zIndex: 199 }}
|
||||||
>
|
>
|
||||||
<Group w={isMobile ? undefined : '100%'}>
|
<Group w={isMobile ? undefined : '100%'}>
|
||||||
<Text
|
<Text
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ function ThemesSettings() {
|
|||||||
display={currentTheme === 'random' ? 'flex' : 'none'}
|
display={currentTheme === 'random' ? 'flex' : 'none'}
|
||||||
blur={5}
|
blur={5}
|
||||||
style={{
|
style={{
|
||||||
|
zIndex: 190,
|
||||||
borderRadius: '10px',
|
borderRadius: '10px',
|
||||||
marginTop: '-15px',
|
marginTop: '-15px',
|
||||||
marginBottom: '-10px',
|
marginBottom: '-10px',
|
||||||
@@ -155,7 +156,7 @@ function ThemesSettings() {
|
|||||||
<Box
|
<Box
|
||||||
style={{
|
style={{
|
||||||
zIndex:
|
zIndex:
|
||||||
currentTheme === 'random' && cardTheme.name === theme.name ? 200 : 0,
|
currentTheme === 'random' && cardTheme.name === theme.name ? 195 : 0,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ThemeCard
|
<ThemeCard
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
font-size: 14px !important;
|
font-size: 14px !important;
|
||||||
}
|
}
|
||||||
.menuSelectInput {
|
.menuSelectInput {
|
||||||
border-color: light-dark(var(--mantine-color-appGray-2), white) !important;
|
border-color: var(--color-border) !important;
|
||||||
background-color: var(--color-background) !important;
|
background-color: var(--color-search-background) !important;
|
||||||
color: var(--color-text-pri) !important;
|
color: var(--color-text-pri) !important;
|
||||||
&:focus {
|
&:focus {
|
||||||
border-color: var(--color-text-pri) !important;
|
border-color: var(--color-text-pri) !important;
|
||||||
@@ -37,8 +37,8 @@
|
|||||||
|
|
||||||
/* applies styles to hovered item (with mouse or keyboard) */
|
/* applies styles to hovered item (with mouse or keyboard) */
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: var(--color-text-acc) !important;
|
background-color: var(--color-text-pri) !important;
|
||||||
color: var(--color-text-pri) !important;
|
color: var(--color-background) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user