Better sizing for buttons with only image, no label

Doesn't skip effects of flex though
This commit is contained in:
nathan 2022-08-02 16:38:52 -06:00
parent 1a8c1c2d35
commit 40e3d6e459

View File

@ -98,6 +98,11 @@ export class Et2Button extends Et2InputWidget(SlButton)
.button__prefix {
padding-left: 1px;
}
/* Only image, no label */
.button--has-prefix:not(.button--has-label) {
width: calc(var(--sl-input-height-medium) + var(--sl-input-spacing-small) * 2);
}
`,
];
}