mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 11:42:19 +08:00
unified card classname (#211)
This commit is contained in:
parent
3e8755621a
commit
9a0f06d195
|
@ -95,7 +95,7 @@ const ConnCard: React.FC = () => {
|
|||
transition,
|
||||
zIndex: isDragging ? 'calc(infinity)' : undefined
|
||||
}}
|
||||
className={connectionCardStatus}
|
||||
className={`${connectionCardStatus} conn-card`}
|
||||
>
|
||||
{connectionCardStatus === 'col-span-2' ? (
|
||||
<>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)}
|
||||
>
|
||||
|
|
|
@ -32,7 +32,7 @@ const ProxyCard: React.FC = () => {
|
|||
transition,
|
||||
zIndex: isDragging ? 'calc(infinity)' : undefined
|
||||
}}
|
||||
className={proxyCardStatus}
|
||||
className={`${proxyCardStatus} proxy-card`}
|
||||
>
|
||||
<Card
|
||||
fullWidth
|
||||
|
|
|
@ -29,7 +29,7 @@ const ResourceCard: React.FC = () => {
|
|||
transition,
|
||||
zIndex: isDragging ? 'calc(infinity)' : undefined
|
||||
}}
|
||||
className={resourceCardStatus}
|
||||
className={`${resourceCardStatus} resource-card`}
|
||||
>
|
||||
<Card
|
||||
fullWidth
|
||||
|
|
|
@ -31,7 +31,7 @@ const RuleCard: React.FC = () => {
|
|||
transition,
|
||||
zIndex: isDragging ? 'calc(infinity)' : undefined
|
||||
}}
|
||||
className={ruleCardStatus}
|
||||
className={`${ruleCardStatus} rule-card`}
|
||||
>
|
||||
<Card
|
||||
fullWidth
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user