no-select

This commit is contained in:
Nate 2025-04-23 11:23:14 -07:00
parent 6714db3a7e
commit ce9956328d
2 changed files with 6 additions and 4 deletions

View file

@ -50,7 +50,7 @@ export function ApplyActions(props: ApplyActionsProps) {
switch (props.applyState ? props.applyState.status : null) {
case "streaming":
return (
<div className="flex items-center rounded bg-zinc-700 pl-2 pr-1">
<div className="flex select-none items-center rounded bg-zinc-700 pl-2 pr-1">
<span className="text-lightgray inline-flex w-min items-center gap-2 text-center text-xs">
Applying
<Spinner />
@ -59,7 +59,7 @@ export function ApplyActions(props: ApplyActionsProps) {
);
case "done":
return (
<div className="flex items-center rounded bg-zinc-700 px-1.5 sm:gap-1">
<div className="flex select-none items-center rounded bg-zinc-700 px-1.5 sm:gap-1">
<span className="max-xs:hidden text-lightgray text-center text-xs">
{`${props.applyState?.numDiffs === 1 ? "1 diff" : `${props.applyState?.numDiffs} diffs`}`}
</span>
@ -87,7 +87,7 @@ export function ApplyActions(props: ApplyActionsProps) {
if (!hasRejected && props.applyState?.numDiffs === 0) {
if (showApplied) {
return (
<span className="flex items-center rounded bg-zinc-700 text-slate-400 max-sm:px-0.5 sm:pl-2">
<span className="flex select-none items-center rounded bg-zinc-700 text-slate-400 max-sm:px-0.5 sm:pl-2">
<span className="max-sm:hidden">Applied</span>
<CheckIcon className="h-3.5 w-3.5 hover:brightness-125 sm:px-1" />
</span>

View file

@ -15,7 +15,9 @@ export function CreateFileButton({ onClick }: CreateFileButtonProps) {
>
<div className="flex items-center gap-1">
<DocumentPlusIcon className="h-3.5 w-3.5 shrink-0" />
<span className="line-clamp-1 break-all">Create file</span>
<span className="line-clamp-1 select-none break-all">
Create file
</span>
</div>
</button>
</>