Lower upload tooltips
This commit is contained in:
parent
2b54dd781c
commit
a0e20f10a6
@ -138,12 +138,14 @@ export default function AdminUploadsTableRow({
|
|||||||
onAddFinish={removeRow}
|
onAddFinish={removeRow}
|
||||||
shouldRedirectToAdminPhotos={shouldRedirectAfterAction}
|
shouldRedirectToAdminPhotos={shouldRedirectAfterAction}
|
||||||
disabled={isRowLoading}
|
disabled={isRowLoading}
|
||||||
|
tooltipSide="bottom"
|
||||||
/>
|
/>
|
||||||
<EditButton
|
<EditButton
|
||||||
path={pathForAdminUploadUrl(url, draftTitle)}
|
path={pathForAdminUploadUrl(url, draftTitle)}
|
||||||
disabled={isRowLoading}
|
disabled={isRowLoading}
|
||||||
tooltip="Review EXIF details before adding"
|
tooltip="Review EXIF details before adding"
|
||||||
hideText="always"
|
hideText="always"
|
||||||
|
tooltipSide="bottom"
|
||||||
/>
|
/>
|
||||||
<DeleteUploadButton
|
<DeleteUploadButton
|
||||||
urls={[url]}
|
urls={[url]}
|
||||||
@ -155,6 +157,7 @@ export default function AdminUploadsTableRow({
|
|||||||
}}
|
}}
|
||||||
disabled={isRowLoading}
|
disabled={isRowLoading}
|
||||||
tooltip="Delete upload"
|
tooltip="Delete upload"
|
||||||
|
tooltipSide="bottom"
|
||||||
/>
|
/>
|
||||||
</>}
|
</>}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -30,6 +30,7 @@ export default function LoaderButton({
|
|||||||
className,
|
className,
|
||||||
tooltip,
|
tooltip,
|
||||||
tooltipColor,
|
tooltipColor,
|
||||||
|
tooltipSide,
|
||||||
...rest
|
...rest
|
||||||
}: {
|
}: {
|
||||||
ref?: RefObject<HTMLButtonElement | null>
|
ref?: RefObject<HTMLButtonElement | null>
|
||||||
@ -46,6 +47,7 @@ export default function LoaderButton({
|
|||||||
hideFocusOutline?: boolean
|
hideFocusOutline?: boolean
|
||||||
tooltip?: string
|
tooltip?: string
|
||||||
tooltipColor?: ComponentProps<typeof Tooltip>['color']
|
tooltipColor?: ComponentProps<typeof Tooltip>['color']
|
||||||
|
tooltipSide?: ComponentProps<typeof Tooltip>['side']
|
||||||
} & ButtonHTMLAttributes<HTMLButtonElement>) {
|
} & ButtonHTMLAttributes<HTMLButtonElement>) {
|
||||||
const button =
|
const button =
|
||||||
<button
|
<button
|
||||||
@ -105,7 +107,11 @@ export default function LoaderButton({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
tooltip
|
tooltip
|
||||||
? <Tooltip content={tooltip} color={tooltipColor}>
|
? <Tooltip
|
||||||
|
content={tooltip}
|
||||||
|
color={tooltipColor}
|
||||||
|
side={tooltipSide}
|
||||||
|
>
|
||||||
{button}
|
{button}
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
: button
|
: button
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user