Center image in button when it has no label

This commit is contained in:
nathan 2022-08-03 10:10:28 -06:00
parent 417851b7b6
commit 0f729b7a1b

View File

@ -102,6 +102,7 @@ export class Et2Button extends Et2InputWidget(SlButton)
/* Only image, no label */
.button--has-prefix:not(.button--has-label) {
width: calc(var(--sl-input-height-medium) + var(--sl-input-spacing-small) * 2);
justify-content: center;
}
`,
];