diff --git a/README.md b/README.md index ba65226..7d319af 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,8 @@ Backend .env.example DB_HOST='127.0.0.1' DB_USER='triggeradmin' DB_PASS='trigger' +DB_PORT='3306' +API_PORT='5000' ``` ## Run/build @@ -91,7 +93,6 @@ npm run dev To build the application for production: -#### ⚠️ Add any background images to public/backgrounds to include them in the build ⚠️ ```shell npm run build @@ -113,4 +114,4 @@ sudo pm2 start server.cjs ### TODO -- Image uploads for backgrounds? \ No newline at end of file +- Mobile improvements \ No newline at end of file diff --git a/src/pages/settings/components/Bookmarks/Bookmarks.tsx b/src/pages/settings/components/Bookmarks/Bookmarks.tsx index 79a436c..6c9a477 100644 --- a/src/pages/settings/components/Bookmarks/Bookmarks.tsx +++ b/src/pages/settings/components/Bookmarks/Bookmarks.tsx @@ -290,7 +290,7 @@ const BookmarkSettings = () => { w={'100%'} align='center' > - + {groups.length > 0 ? ( groups?.map((group: BookmarkGroup) => ( + } /> - - { - openModal(); + - - - - - { - setMessage({ - ...message, - customGreeting: event.target.checked ? 1 : 0, - }); - }} - /> - + + } + onChange={(event) => { + setMessage({ + ...message, + customGreeting: event.target.checked ? 1 : 0, + }); + }} + /> + + | + + { + openModal(); + }} + > + + + + ); diff --git a/src/styles/Card.module.css b/src/styles/Card.module.css index 37ab813..b9e80df 100644 --- a/src/styles/Card.module.css +++ b/src/styles/Card.module.css @@ -2,7 +2,7 @@ &.root { color: var(--mantine-color-primary-0); background-color: transparent; - backdrop-filter: blur(5px) brightness(1.25) !important; + backdrop-filter: blur(5px) brightness(1.25); } } @@ -10,7 +10,7 @@ &.root { color: var(--mantine-color-primary-0); background-color: transparent; - backdrop-filter: blur(5px) brightness(1.25) !important; + backdrop-filter: blur(5px) brightness(1.25); cursor: pointer; &:hover { color: var(--mantine-color-accent-0); diff --git a/src/styles/Switch.module.css b/src/styles/Switch.module.css index f4cbad1..00c542f 100644 --- a/src/styles/Switch.module.css +++ b/src/styles/Switch.module.css @@ -34,3 +34,40 @@ } } } + +.enable { + @media (max-width: 600px) { + &.root { + .label { + position: absolute; + top: -22px; + left: -8px; + } + } + } + &.root { + .track { + transition: all .2s ease !important; + background-color: color-mix(in srgb, var(--mantine-color-primary-0), transparent 90%); + overflow: visible; + height: 2px; + } + .thumb { + transition: all .2s ease !important; + border: none; + background-color: var(--mantine-color-background-0); + height: 1.5rem; + width: 1.5rem; + font-size: 1rem; + margin-left: -4px; + } + .input:checked + * > .thumb { + transition: all .2s ease !important; + background-color: var(--mantine-color-background-0); + } + .input:checked + .track { + transition: all .2s ease !important; + background-color: color-mix(in srgb, var(--mantine-color-primary-0), transparent 30%); + } + } +} \ No newline at end of file