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:
parent
9f6702d0b8
commit
58d66d3142
226 changed files with 704 additions and 699 deletions
|
@ -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()}
|
||||
>
|
||||
|
|
|
@ -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',
|
||||
})}
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue