Skip to content

Commit

Permalink
add gap to dialog footers
Browse files Browse the repository at this point in the history
  • Loading branch information
Herobread committed Jul 24, 2024
1 parent 9842562 commit a9d47b6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/ui/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const DialogFooter = ({
}: React.HTMLAttributes<HTMLDivElement>) => (
<div
className={cn(
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
"flex flex-col-reverse gap-1 sm:flex-row sm:justify-end sm:space-x-2",
className
)}
{...props}
Expand Down
2 changes: 1 addition & 1 deletion src/features/shared/dialogs/AddNoteDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default NiceModal.create(({ fileKey }: { fileKey: string }) => {
</FormItem>
)}
/>
<DialogFooter className="flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2">
<DialogFooter className="flex flex-col-reverse gap-1 sm:flex-row sm:justify-end sm:space-x-2">
<Button
variant={"outline"}
type="button"
Expand Down
2 changes: 1 addition & 1 deletion src/features/shared/dialogs/EditQuickLinkDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default NiceModal.create(({ quickLink }: { quickLink: QuickLink }) => {
}}
/>
</CompactLayout>
<DialogFooter className="flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2">
<DialogFooter className="flex flex-col-reverse gap-1 sm:flex-row sm:justify-end sm:space-x-2">
<Button
onClick={handleClose}
variant={"outline"}
Expand Down
2 changes: 1 addition & 1 deletion src/features/shared/dialogs/tags/AddNewTagDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default NiceModal.create(({ fileLink }: TagFileMenuDialogProps) => {
</FormItem>
)}
/>
<DialogFooter className="flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2">
<DialogFooter className="flex flex-col-reverse gap-1 sm:flex-row sm:justify-end sm:space-x-2">
<Button
type="button"
variant={"outline"}
Expand Down
2 changes: 1 addition & 1 deletion src/features/shared/dialogs/tags/ManageTagCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export function ManageTagCard({ tag, files }: ManageTagCardProps) {
</FormItem>
)}
/>
<div className="flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2">
<div className="flex flex-col-reverse gap-1 sm:flex-row sm:justify-end sm:space-x-2">
<Button
type="button"
variant={"outline"}
Expand Down
2 changes: 1 addition & 1 deletion src/features/shared/dialogs/tags/ManageTagsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default NiceModal.create(() => {
</p>
)}
</ScrollArea>
<DialogFooter className="flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2">
<DialogFooter className="flex flex-col-reverse gap-1 sm:flex-row sm:justify-end sm:space-x-2">
<Button variant={"outline"} onClick={handleClose}>
Close
</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/features/shared/dialogs/tags/ViewTaggedFilesDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default NiceModal.create(({ tag }: ViewTaggedFilesDialogProps) => {
)}
</div>
</ScrollArea>
<DialogFooter className="flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2">
<DialogFooter className="flex flex-col-reverse gap-1 sm:flex-row sm:justify-end sm:space-x-2">
<Button variant={"outline"} onClick={handleClose}>
Close
</Button>
Expand Down

0 comments on commit a9d47b6

Please sign in to comment.