Skip to content

Commit

Permalink
fix: card info color theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Zephyruso authored and Zephyruso committed Sep 1, 2023
1 parent aeb0139 commit 80d5138
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion src/components/ProxyNodeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ export default (props: {
>
<div class="truncate text-left">{proxyName}</div>
<div class="flex items-center justify-between gap-1">
<div class="truncate text-xs text-slate-500">
<div
class={twMerge(
'truncate text-xs text-slate-500',
isSelected && 'text-primary',
)}
>
{formatProxyType(proxyNode().type)}
{proxyNode().udp && ' :: udp'}
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Connections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,14 @@ export default () => {
</div>

<div class="overflow-x-auto whitespace-nowrap">
<table class="table table-xs">
<table class="table table-xs bg-base-200">
<thead>
<For each={table.getHeaderGroups()}>
{(headerGroup) => (
<tr>
<For each={headerGroup.headers}>
{(header) => (
<th class="bg-base-200">
<th class="bg-base-300">
<div
class={twMerge(
'flex items-center justify-between',
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Rules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default () => {
<div class="grid grid-cols-1 gap-2 sm:grid-cols-1">
<For each={rules()}>
{(rule) => (
<div class="card card-bordered card-compact border-neutral-focus bg-neutral p-4 text-neutral-content">
<div class="card card-bordered card-compact bg-base-200 p-4">
<div class="break-all">{rule.payload}</div>
<div class="text-xs text-slate-500">
{rule.type} :: {rule.proxy}
Expand All @@ -46,7 +46,7 @@ export default () => {
<div class="grid grid-cols-1 gap-2 sm:grid-cols-1">
<For each={rulesProviders()}>
{(rulesProvider) => (
<div class="card card-bordered card-compact border-neutral-focus bg-neutral p-4 text-neutral-content">
<div class="card card-bordered card-compact bg-base-200 p-4">
<div>{rulesProvider.name}</div>
<div class="text-xs text-slate-500">
{rulesProvider.vehicleType} :: {rulesProvider.behavior} (
Expand Down

0 comments on commit 80d5138

Please sign in to comment.