дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 03:05:40 +02:00
Closes #1981 @file references and /skill commands become inline tags anywhere in the prompt, in Home and in a conversation. Tags are edited as a unit (Backspace/Delete, arrows) and are not committed mid-IME composition. Files and folders dragged from the Project view become references, mapped into the task worktree; paths outside the project, traversal and relative paths are rejected, and a deleted reference can be dropped again. Co-authored-by: panda-student <[email protected]>
9 рядки
377 B
TypeScript
9 рядки
377 B
TypeScript
import type { ReactNode } from "react";
|
|
import clsx from "clsx";
|
|
import styles from "./InlineTag.module.css";
|
|
|
|
/** A text-sized tag that preserves glyph positions in mirrored inputs. */
|
|
export function InlineTag({ children, accent = false }: { children: ReactNode; accent?: boolean }) {
|
|
return <span className={clsx(styles.tag, accent && styles.accent)}>{children}</span>;
|
|
}
|