update: style of card

This commit is contained in:
purp1e
2024-10-06 19:36:47 +08:00
parent 42b3210584
commit c0c34180ae
3 changed files with 127 additions and 2 deletions

View File

@@ -5333,6 +5333,131 @@
"description": "Denies the stdin_write command without any pre-configured scope.",
"type": "string",
"const": "shell:deny-stdin-write"
},
{
"description": "This permission set configures what kind of\noperations are available from the store plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n",
"type": "string",
"const": "store:default"
},
{
"description": "Enables the clear command without any pre-configured scope.",
"type": "string",
"const": "store:allow-clear"
},
{
"description": "Enables the delete command without any pre-configured scope.",
"type": "string",
"const": "store:allow-delete"
},
{
"description": "Enables the entries command without any pre-configured scope.",
"type": "string",
"const": "store:allow-entries"
},
{
"description": "Enables the get command without any pre-configured scope.",
"type": "string",
"const": "store:allow-get"
},
{
"description": "Enables the has command without any pre-configured scope.",
"type": "string",
"const": "store:allow-has"
},
{
"description": "Enables the keys command without any pre-configured scope.",
"type": "string",
"const": "store:allow-keys"
},
{
"description": "Enables the length command without any pre-configured scope.",
"type": "string",
"const": "store:allow-length"
},
{
"description": "Enables the load command without any pre-configured scope.",
"type": "string",
"const": "store:allow-load"
},
{
"description": "Enables the reset command without any pre-configured scope.",
"type": "string",
"const": "store:allow-reset"
},
{
"description": "Enables the save command without any pre-configured scope.",
"type": "string",
"const": "store:allow-save"
},
{
"description": "Enables the set command without any pre-configured scope.",
"type": "string",
"const": "store:allow-set"
},
{
"description": "Enables the values command without any pre-configured scope.",
"type": "string",
"const": "store:allow-values"
},
{
"description": "Denies the clear command without any pre-configured scope.",
"type": "string",
"const": "store:deny-clear"
},
{
"description": "Denies the delete command without any pre-configured scope.",
"type": "string",
"const": "store:deny-delete"
},
{
"description": "Denies the entries command without any pre-configured scope.",
"type": "string",
"const": "store:deny-entries"
},
{
"description": "Denies the get command without any pre-configured scope.",
"type": "string",
"const": "store:deny-get"
},
{
"description": "Denies the has command without any pre-configured scope.",
"type": "string",
"const": "store:deny-has"
},
{
"description": "Denies the keys command without any pre-configured scope.",
"type": "string",
"const": "store:deny-keys"
},
{
"description": "Denies the length command without any pre-configured scope.",
"type": "string",
"const": "store:deny-length"
},
{
"description": "Denies the load command without any pre-configured scope.",
"type": "string",
"const": "store:deny-load"
},
{
"description": "Denies the reset command without any pre-configured scope.",
"type": "string",
"const": "store:deny-reset"
},
{
"description": "Denies the save command without any pre-configured scope.",
"type": "string",
"const": "store:deny-save"
},
{
"description": "Denies the set command without any pre-configured scope.",
"type": "string",
"const": "store:deny-set"
},
{
"description": "Denies the values command without any pre-configured scope.",
"type": "string",
"const": "store:deny-values"
}
]
},

View File

@@ -9,7 +9,7 @@ interface CardProps {
const Card = ({ children }: CardProps) => {
return (
<div
className="dark:from-black/10 dark:to-black/5 dark:border-white/[6%] px-4 pt-3 pb-4 flex flex-col gap-2 border w-full rounded-lg bg-gradient-to-br from-white/50 to-white/40 border-black/[6%]"
className="dark:from-black/10 dark:to-black/5 dark:border-white/[6%] px-4 pt-3 pb-4 flex flex-col gap-2 border w-full rounded-lg bg-white/40 border-black/[6%]"
data-tauri-drag-region
>
{children}

View File

@@ -35,7 +35,7 @@ const SideButton = ({
{children}
<div
className={clsx(
path === route && "opacity-100",
path.startsWith(route) && "opacity-100",
"transition-opacity duration-300 opacity-0 h-3.5 w-0.5 absolute left-0.5 bg-purple-500 rounded-full top-1/2 -translate-y-1/2"
)}
/>