unified card classname (#211)

This commit is contained in:
Dahaha 2024-10-07 06:58:39 +08:00 committed by pompurin404
parent 3e8755621a
commit 9a0f06d195
No known key found for this signature in database
8 changed files with 8 additions and 8 deletions

View File

@ -95,7 +95,7 @@ const ConnCard: React.FC = () => {
transition,
zIndex: isDragging ? 'calc(infinity)' : undefined
}}
className={connectionCardStatus}
className={`${connectionCardStatus} conn-card`}
>
{connectionCardStatus === 'col-span-2' ? (
<>

View File

@ -51,7 +51,7 @@ const MihomoCoreCard: React.FC = () => {
transition,
zIndex: isDragging ? 'calc(infinity)' : undefined
}}
className={mihomoCoreCardStatus}
className={`${mihomoCoreCardStatus} mihomo-core-card`}
>
{mihomoCoreCardStatus === 'col-span-2' ? (
<Card

View File

@ -25,7 +25,7 @@ const OutboundModeSwitcher: React.FC = () => {
color="primary"
selectedKey={mode}
classNames={{
tabList: 'bg-content1 shadow-medium'
tabList: 'bg-content1 shadow-medium outbound-mode-card'
}}
onSelectionChange={(key: Key) => onChangeMode(key as OutboundMode)}
>

View File

@ -32,7 +32,7 @@ const ProxyCard: React.FC = () => {
transition,
zIndex: isDragging ? 'calc(infinity)' : undefined
}}
className={proxyCardStatus}
className={`${proxyCardStatus} proxy-card`}
>
<Card
fullWidth

View File

@ -29,7 +29,7 @@ const ResourceCard: React.FC = () => {
transition,
zIndex: isDragging ? 'calc(infinity)' : undefined
}}
className={resourceCardStatus}
className={`${resourceCardStatus} resource-card`}
>
<Card
fullWidth

View File

@ -31,7 +31,7 @@ const RuleCard: React.FC = () => {
transition,
zIndex: isDragging ? 'calc(infinity)' : undefined
}}
className={ruleCardStatus}
className={`${ruleCardStatus} rule-card`}
>
<Card
fullWidth

View File

@ -40,7 +40,7 @@ const SniffCard: React.FC = () => {
transition,
zIndex: isDragging ? 'calc(infinity)' : undefined
}}
className={`${sniffCardStatus} ${!controlSniff ? 'hidden' : ''}`}
className={`${sniffCardStatus} ${!controlSniff ? 'hidden' : ''} sniff-card`}
>
<Card
fullWidth

View File

@ -28,7 +28,7 @@ const SubStoreCard: React.FC = () => {
transition,
zIndex: isDragging ? 'calc(infinity)' : undefined
}}
className={`${substoreCardStatus} ${!useSubStore ? 'hidden' : ''}`}
className={`${substoreCardStatus} ${!useSubStore ? 'hidden' : ''} substore-card`}
>
<Card
ref={setNodeRef}