1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

chore(prettier): add tailwind prettier plugin [EE-4809] (#8221)

* add prettier plugin

* apply tailwind prettier formatting
This commit is contained in:
Ali 2023-02-13 10:04:24 +13:00 committed by GitHub
parent 9f6702d0b8
commit 58d66d3142
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
226 changed files with 704 additions and 699 deletions

View file

@ -15,7 +15,7 @@ export function CloseButton({
className={clsx(
styles.close,
className,
'absolute top-4 right-5 close-button'
'close-button absolute top-4 right-5'
)}
onClick={() => onClose()}
>

View file

@ -39,7 +39,7 @@ export function Modal({
isOpen
className={clsx(
styles.overlay,
'flex items-center justify-center z-50'
'z-50 flex items-center justify-center'
)}
onDismiss={onDismiss}
role="dialog"
@ -47,7 +47,7 @@ export function Modal({
<DialogContent
aria-label={ariaLabel}
aria-labelledby={ariaLabelledBy}
className={clsx(styles.modalDialog, 'p-0 bg-transparent', {
className={clsx(styles.modalDialog, 'bg-transparent p-0', {
'w-[450px]': size === 'md',
'w-[700px]': size === 'lg',
})}

View file

@ -6,6 +6,6 @@ export function ModalFooter({ children }: PropsWithChildren<unknown>) {
useModalContext();
return (
<div className="flex justify-end gap-3 [&>*]:flex-1 pt-3">{children}</div>
<div className="flex justify-end gap-3 pt-3 [&>*]:flex-1">{children}</div>
);
}

View file

@ -24,7 +24,7 @@ export function ModalHeader({ title, modalType }: Props) {
/>
)}
{typeof title === 'string' ? (
<h5 className="font-bold m-0">{title}</h5>
<h5 className="m-0 font-bold">{title}</h5>
) : (
title
)}