Auto resize values when they'd overflow the container

This commit is contained in:
DaneEveritt 2022-06-25 21:27:18 -04:00
parent 182507ff0e
commit 76f3b996fe
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 24 additions and 10 deletions

View file

@ -51,7 +51,6 @@ export default ({ className }: PowerButtonProps) => {
<Can action={'control.restart'}>
<Button.Text
className={'w-full sm:w-24'}
variant={Button.Variants.Secondary}
disabled={!status}
onClick={onButtonClick.bind(this, 'restart')}
>
@ -61,7 +60,6 @@ export default ({ className }: PowerButtonProps) => {
<Can action={'control.stop'}>
<Button.Danger
className={'w-full sm:w-24'}
variant={killable ? undefined : Button.Variants.Secondary}
disabled={status === 'offline'}
onClick={onButtonClick.bind(this, killable ? 'kill' : 'stop')}
>