mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Added width style to the action button (#100768)
* Added width style to the action button * Fix typo
This commit is contained in:
@@ -18,7 +18,13 @@ export function ActionButton({ action, ...buttonProps }: ActionButtonProps) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Button variant="primary" size="sm" onClick={() => setShowConfirm(true)} {...buttonProps}>
|
<Button
|
||||||
|
variant="primary"
|
||||||
|
size="sm"
|
||||||
|
onClick={() => setShowConfirm(true)}
|
||||||
|
{...buttonProps}
|
||||||
|
style={{ width: 'fit-content' }}
|
||||||
|
>
|
||||||
{action.title}
|
{action.title}
|
||||||
</Button>
|
</Button>
|
||||||
{showConfirm && (
|
{showConfirm && (
|
||||||
|
Reference in New Issue
Block a user