Skip to content

Commit 1ac129a

Browse files
committed
refactor(ui): use shadow tokens at call sites
1 parent a9c7e30 commit 1ac129a

20 files changed

Lines changed: 20 additions & 20 deletions

‎app/src/components/AiConversationDock.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export default function AiConversationDock({
242242
data-testid="ai-dock"
243243
style={{
244244
position: "fixed", top: "var(--ed-nav-h)", right: 0, bottom: 0, width: PANEL_W, zIndex: zIndex("panel"),
245-
background: "#fff", borderLeft: "1px solid #e5e7eb", boxShadow: "-8px 0 24px rgba(0,0,0,0.08)",
245+
background: "#fff", borderLeft: "1px solid #e5e7eb", boxShadow: "var(--ed-shadow-1)",
246246
display: open ? "flex" : "none", flexDirection: "column", overflow: "hidden",
247247
fontSize: 12.5, color: "#1f2937",
248248
}}

‎app/src/components/BrowserChrome.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export default function BrowserChrome() {
143143
background: "#fff",
144144
border: "1px solid #e5e7eb",
145145
borderRadius: 8,
146-
boxShadow: "0 8px 24px rgba(0,0,0,0.14)",
146+
boxShadow: "var(--ed-shadow-2)",
147147
padding: 4,
148148
}}
149149
>

‎app/src/components/CanvasNodeConcept.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default memo(function CanvasNodeConcept({ data, selected }: NodeProps<Con
2727
borderRadius: 8,
2828
border: selected ? "2px solid #14b8a6" : "1px solid #e5e7eb",
2929
background: selected ? "#f0fdfa" : "#ffffff",
30-
boxShadow: "0 1px 4px rgba(0,0,0,0.08)",
30+
boxShadow: "var(--ed-shadow-1)",
3131
padding: 8,
3232
}}
3333
>

‎app/src/components/CanvasNodeModel.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default memo(function CanvasNodeModel({ data, selected }: NodeProps<Model
2626
borderRadius: 8,
2727
border: selected ? "2px solid #14b8a6" : "1px solid #e5e7eb",
2828
background: selected ? "#f0fdfa" : "#ffffff",
29-
boxShadow: "0 1px 4px rgba(0,0,0,0.08)",
29+
boxShadow: "var(--ed-shadow-1)",
3030
padding: 8,
3131
}}
3232
>

‎app/src/components/CanvasNodeQuestion.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default memo(function CanvasNodeQuestion({ data, selected }: NodeProps<Qu
5353
borderRadius: 8,
5454
border: selected ? "2px solid #14b8a6" : "1px solid #d1d5db",
5555
background: selected ? "#f0fdfa" : "#ffffff",
56-
boxShadow: "0 1px 4px rgba(0,0,0,0.08)",
56+
boxShadow: "var(--ed-shadow-1)",
5757
padding: 8,
5858
}}
5959
>

‎app/src/components/GroupRowContextMenu.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default function GroupRowContextMenu({
9393
background: "#fff",
9494
border: "1px solid #e5e7eb",
9595
borderRadius: 8,
96-
boxShadow: "0 8px 24px rgba(0,0,0,0.14)",
96+
boxShadow: "var(--ed-shadow-2)",
9797
padding: 4,
9898
}}
9999
>

‎app/src/components/GroupSidebarRow.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export default function GroupSidebarRow({
173173
{colorPickerOpen && (
174174
<div
175175
data-testid={`group-color-picker-${group.id}`}
176-
style={{ position: "absolute", top: "100%", left: 8, zIndex: zIndex("popover"), background: "#fff", border: "1px solid #e5e7eb", borderRadius: 6, padding: 8, boxShadow: "0 4px 12px rgba(0,0,0,0.12)" }}
176+
style={{ position: "absolute", top: "100%", left: 8, zIndex: zIndex("popover"), background: "#fff", border: "1px solid #e5e7eb", borderRadius: 6, padding: 8, boxShadow: "var(--ed-shadow-1)" }}
177177
>
178178
<NoteColorPicker
179179
value={group.color ?? null}

‎app/src/components/NoteEditView.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ const NoteEditView = forwardRef<NoteEditHandle, Props>(function NoteEditView({ n
348348
<div onClick={() => setHighlightOpen(false)} style={{ position: "fixed", inset: 0, zIndex: zIndex("popover"), background: "transparent" }} />
349349
<div
350350
data-testid="highlight-pop"
351-
style={{ position: "absolute", top: "100%", left: 0, zIndex: zIndex("popover"), background: "#fff", border: "1px solid #e5e7eb", borderRadius: 6, padding: 8, boxShadow: "0 4px 12px rgba(0,0,0,0.12)", maxWidth: 200 }}
351+
style={{ position: "absolute", top: "100%", left: 0, zIndex: zIndex("popover"), background: "#fff", border: "1px solid #e5e7eb", borderRadius: 6, padding: 8, boxShadow: "var(--ed-shadow-1)", maxWidth: 200 }}
352352
>
353353
<button
354354
data-testid="highlight-default"

‎app/src/components/NoteHeaderActions.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default function NoteHeaderActions({
6161
{colorPickerOpen && (
6262
<div
6363
data-testid="note-color-picker-pop"
64-
style={{ position: "absolute", top: "100%", right: 0, zIndex: zIndex("popover"), background: "#fff", border: "1px solid #e5e7eb", borderRadius: 6, padding: 8, boxShadow: "0 4px 12px rgba(0,0,0,0.12)" }}
64+
style={{ position: "absolute", top: "100%", right: 0, zIndex: zIndex("popover"), background: "#fff", border: "1px solid #e5e7eb", borderRadius: 6, padding: 8, boxShadow: "var(--ed-shadow-1)" }}
6565
>
6666
<NoteColorPicker
6767
value={parseNoteProperties(note).color ?? null}

‎app/src/components/NoteLinkToSystem.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export default function NoteLinkToSystem({ noteId, onChanged, onGotoKnowledgeSys
249249
style={{
250250
position: "absolute", zIndex: zIndex("popover"), top: "calc(100% + 6px)", right: 0,
251251
padding: 10, background: "#fff", border: "1px solid #e5e7eb",
252-
borderRadius: 8, boxShadow: "0 4px 16px rgba(0,0,0,0.12)",
252+
borderRadius: 8, boxShadow: "var(--ed-shadow-2)",
253253
display: "flex", flexDirection: "column", gap: 6, width: 280,
254254
maxHeight: 460, overflowY: "auto",
255255
}}

0 commit comments

Comments
 (0)