Skip to content

Commit

Permalink
unified card classname (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
dahaha-365 authored Oct 6, 2024
1 parent 349e422 commit 9c98232
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/renderer/src/components/sider/conn-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const ConnCard: React.FC = () => {
transition,
zIndex: isDragging ? 'calc(infinity)' : undefined
}}
className={connectionCardStatus}
className={`${connectionCardStatus} conn-card`}
>
{connectionCardStatus === 'col-span-2' ? (
<>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/sider/mihomo-core-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/sider/proxy-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const ProxyCard: React.FC = () => {
transition,
zIndex: isDragging ? 'calc(infinity)' : undefined
}}
className={proxyCardStatus}
className={`${proxyCardStatus} proxy-card`}
>
<Card
fullWidth
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/sider/resource-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const ResourceCard: React.FC = () => {
transition,
zIndex: isDragging ? 'calc(infinity)' : undefined
}}
className={resourceCardStatus}
className={`${resourceCardStatus} resource-card`}
>
<Card
fullWidth
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/sider/rule-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const RuleCard: React.FC = () => {
transition,
zIndex: isDragging ? 'calc(infinity)' : undefined
}}
className={ruleCardStatus}
className={`${ruleCardStatus} rule-card`}
>
<Card
fullWidth
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/sider/sniff-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/sider/substore-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 9c98232

Please sign in to comment.