Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -181,17 +181,17 @@ export default function IntComponent({
/>
</NumberIncrementStepper>
<NumberDecrementStepper
className={decrementStepperClassName}
_disabled={{ cursor: "default" }}
isDisabled={isAtOrBelowMin}
onClickCapture={
isAtOrBelowMin
? (e: React.MouseEvent) => {
e.preventDefault();
e.stopPropagation();
}
: undefined
}
className={cn(
decrementStepperClassName,
isAtOrBelowMin && "pointer-events-none opacity-50",
)}
aria-disabled={isAtOrBelowMin || undefined}
data-disabled={isAtOrBelowMin ? "" : undefined}
onClickCapture={(e: React.MouseEvent) => {
if (!isAtOrBelowMin) return;
e.preventDefault();
e.stopPropagation();
}}
>
<MinusIcon
className={iconClassName}
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/modals/deleteConfirmationModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function DeleteConfirmationModal({
return (
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild={!children ? true : asChild} tabIndex={-1}>
{children ?? <></>}
{children}
</DialogTrigger>
<DialogContent>
<DialogHeader>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default function DragFilesComponent({
<h3 className="text-sm font-semibold">
{isDragging ? "Drop files here" : "Click or drag files here"}
</h3>
<p className="flex items-center gap-2 text-xs text-muted-foreground">
<div className="flex items-center gap-2 text-xs text-muted-foreground">
<div className="flex items-center gap-1">
<span>{types.slice(0, 3).join(", ")}</span>
{types.length > 3 && (
Expand All @@ -124,7 +124,7 @@ export default function DragFilesComponent({
<span className="font-semibold">
{formatFileSize(maxFileSizeUpload)} max
</span>
</p>
</div>
<div className="pointer-events-none absolute inset-0 h-full w-full">
<svg
width="100%"
Expand Down