27375c1a4d
- Replace hardcoded Tailwind colors (bg-white, bg-gray-50/100, text-gray-, border-gray-, divide-gray-*, text-blue-600/800, bg-blue-50) with design tokens (bg-card, bg-muted, text-foreground, text-muted-foreground, border-
border, text-primary, hover:bg-accent, bg-primary/10).
- ClipboardApp: update RichTextEditor toolbar/editor, FileUploadHandler, ShareCard, FileListDisplay, SendTabPanel, RetrieveTabPanel, FileTransferButton.
- Blog UI: unify styles in list page, tag page, post page, ArticleListItem, and TableOfContents.
- MDX/prose: normalize pre/code/table/blockquote/lists and figure captions; switch rehype table divider to theme token.
- Misc: adjust HomeClient and HowItWorks copy colors to tokens.
- No functional changes; light mode parity; improved contrast and consistency in dark mode.
35 lines
953 B
TypeScript
35 lines
953 B
TypeScript
import { AlignLeft, AlignCenter, AlignRight } from "lucide-react";
|
|
import { AlignmentType } from "../types";
|
|
|
|
interface AlignmentToolsProps {
|
|
alignText: (alignment: AlignmentType) => void;
|
|
}
|
|
|
|
export function AlignmentTools({ alignText }: AlignmentToolsProps) {
|
|
return (
|
|
<div className="flex flex-wrap gap-1">
|
|
<button
|
|
className="p-1.5 hover:bg-accent rounded"
|
|
onClick={() => alignText("left")}
|
|
title="Align left"
|
|
>
|
|
<AlignLeft className="w-3.5 h-3.5" />
|
|
</button>
|
|
<button
|
|
className="p-1.5 hover:bg-accent rounded"
|
|
onClick={() => alignText("center")}
|
|
title="Align center"
|
|
>
|
|
<AlignCenter className="w-3.5 h-3.5" />
|
|
</button>
|
|
<button
|
|
className="p-1.5 hover:bg-accent rounded"
|
|
onClick={() => alignText("right")}
|
|
title="Align right"
|
|
>
|
|
<AlignRight className="w-3.5 h-3.5" />
|
|
</button>
|
|
</div>
|
|
);
|
|
}
|