Skip to content

Commit 891b414

Browse files
committed
chore: fix dark mode
1 parent 706990b commit 891b414

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

frontend/web/src/components/AnalyticsView.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ const AnalyticsView: React.FC<Props> = (props: Props) => {
113113
</div>
114114
</div>
115115
) : (
116-
<div className="w-full divide-y divide-gray-300">
116+
<div className="w-full divide-y divide-gray-300 dark:divide-zinc-700">
117117
<div className="w-full flex flex-row justify-between items-center">
118118
<span className="py-2 px-2 text-left text-sm font-semibold text-gray-500">{t("analytics.operating-system")}</span>
119119
<span className="py-2 pr-2 text-right text-sm font-semibold text-gray-500">{t("analytics.visitors")}</span>
120120
</div>
121-
<div className="w-full divide-y divide-gray-200">
121+
<div className="w-full divide-y divide-gray-200 dark:divide-zinc-800">
122122
{analytics.devices.length === 0 && (
123123
<div className="w-full flex flex-row justify-center items-center py-6 text-gray-400">
124124
<Icon.PackageOpen className="w-6 h-auto" />
@@ -127,7 +127,9 @@ const AnalyticsView: React.FC<Props> = (props: Props) => {
127127
)}
128128
{analytics.devices.map((device) => (
129129
<div key={device.name} className="w-full flex flex-row justify-between items-center">
130-
<span className="whitespace-nowrap py-2 px-2 text-sm text-gray-900 truncate">{device.name || "Unknown"}</span>
130+
<span className="whitespace-nowrap py-2 px-2 text-sm text-gray-900 truncate dark:text-gray-500">
131+
{device.name || "Unknown"}
132+
</span>
131133
<span className="whitespace-nowrap py-2 pr-2 text-sm text-gray-500 text-right shrink-0">{device.count}</span>
132134
</div>
133135
))}

frontend/web/src/pages/CollectionDashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const CollectionDashboard: React.FC = () => {
7878
<Icon.PackageOpen size={64} strokeWidth={1} />
7979
<p className="mt-2">No collections found.</p>
8080
<a
81-
className="text-blue-600 border-t text-sm hover:underline flex flex-row justify-center items-center mt-4 pt-2"
81+
className="text-blue-600 border-t dark:border-t-zinc-600 text-sm hover:underline flex flex-row justify-center items-center mt-4 pt-2"
8282
href="https://github.com/yourselfhosted/slash/blob/main/docs/getting-started/collections.md"
8383
target="_blank"
8484
>

frontend/web/src/pages/ShortcutDashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const ShortcutDashboard: React.FC = () => {
8080
<Icon.PackageOpen size={64} strokeWidth={1} />
8181
<p className="mt-2">No shortcuts found.</p>
8282
<a
83-
className="text-blue-600 border-t text-sm hover:underline flex flex-row justify-center items-center mt-4 pt-2"
83+
className="text-blue-600 border-t dark:border-t-zinc-600 text-sm hover:underline flex flex-row justify-center items-center mt-4 pt-2"
8484
href="https://github.com/yourselfhosted/slash/blob/main/docs/getting-started/shortcuts.md"
8585
target="_blank"
8686
>

0 commit comments

Comments
 (0)