Replace the last glyph icons with Phosphor
The editor's insert, duplicate and remove buttons, the image library's close button and audio tile, the schedule's fold-out caret, the admin menu's caret, the history timeline's caret and gap marker, and the QR page's copied tick. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5292eda4a6
commit
706abf6a03
7 changed files with 23 additions and 18 deletions
|
|
@ -85,7 +85,7 @@
|
|||
able to read and copy.
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
import { ArrowUp, ArrowDown, CaretRight } from "@phosphor-icons/react";
|
||||
import { ArrowUp, ArrowDown, CaretRight, Copy, Plus, X } from "@phosphor-icons/react";
|
||||
import { useRef, useState } from "react";
|
||||
|
||||
import { ApiError, post } from "../../lib/api.ts";
|
||||
|
|
@ -652,20 +652,20 @@ export function Repeater({
|
|||
label="Insert a new one below"
|
||||
onClick={() => insertAt(index + 1, { ...spec.blank })}
|
||||
>
|
||||
+
|
||||
<Plus size={14} weight="bold" aria-hidden="true" />
|
||||
</IconButton>
|
||||
<IconButton
|
||||
label="Duplicate"
|
||||
onClick={() => insertAt(index + 1, withoutIds(row))}
|
||||
>
|
||||
⧉
|
||||
<Copy size={14} weight="bold" aria-hidden="true" />
|
||||
</IconButton>
|
||||
<IconButton
|
||||
label="Remove"
|
||||
danger
|
||||
onClick={() => removeAt(index)}
|
||||
>
|
||||
✕
|
||||
<X size={14} weight="bold" aria-hidden="true" />
|
||||
</IconButton>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -733,7 +733,7 @@ function IconButton({ label, onClick, danger = false, disabled = false, children
|
|||
aria-label={label}
|
||||
title={label}
|
||||
className={
|
||||
"h-7 w-7 rounded-full border text-sm leading-none transition-colors " +
|
||||
"flex h-7 w-7 items-center justify-center rounded-full border text-sm leading-none transition-colors " +
|
||||
(disabled
|
||||
? "cursor-default border-muted/20 text-muted/40"
|
||||
: danger
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue