Skip to content

Commit 731adc2

Browse files
committed
fix settings items border
1 parent 3a1b872 commit 731adc2

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

apps/desktop/src/routes/(window-chrome)/settings.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import { A, type RouteSectionProps, useLocation } from "@solidjs/router";
22
import { cx } from "cva";
33
import { createResource, For } from "solid-js";
44
import { Button } from "@cap/ui-solid";
5-
import { commands } from "~/utils/tauri";
65
import { getVersion } from "@tauri-apps/api/app";
76

7+
import { commands } from "~/utils/tauri";
8+
89
export default function (props: RouteSectionProps) {
910
const location = useLocation();
1011

@@ -42,10 +43,10 @@ export default function (props: RouteSectionProps) {
4243
<A
4344
href={item.href}
4445
class={cx(
45-
"rounded-lg h-[2rem] px-[0.375rem] flex flex-row items-center gap-[0.375rem] transition-colors",
46+
"rounded-lg h-[2rem] px-[0.375rem] flex flex-row items-center gap-[0.375rem] transition-colors border",
4647
isActive()
47-
? "bg-blue-50 border border-blue-200 text-blue-700"
48-
: "hover:bg-gray-100"
48+
? "bg-blue-50 border-blue-200 text-blue-700"
49+
: "hover:bg-gray-100 border-transparent"
4950
)}
5051
>
5152
<item.icon class="size-[1.25rem]" />

packages/ui-solid/tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
],
77
theme: {
88
colors: {
9+
transparent: "rgba(0,0,0,0)",
910
gray: {
1011
50: "#FFFFFF",
1112
100: "#F7F8FA",

0 commit comments

Comments
 (0)