forked from extern/egroupware
Don't let button-icons grow/shrink
This commit is contained in:
parent
94cec559d6
commit
83dc0a95f8
@ -13,10 +13,25 @@ import {Et2InputWidget} from "../Et2InputWidget/Et2InputWidget";
|
||||
import '../Et2Image/Et2Image';
|
||||
import {SlIconButton} from "@shoelace-style/shoelace";
|
||||
import {ButtonMixin} from "./ButtonMixin";
|
||||
import shoelace from "../Styles/shoelace";
|
||||
import {css} from "@lion/core";
|
||||
|
||||
|
||||
export class Et2ButtonIcon extends ButtonMixin(Et2InputWidget(SlIconButton))
|
||||
{
|
||||
static get styles()
|
||||
{
|
||||
return [
|
||||
...shoelace,
|
||||
...(super.styles || []),
|
||||
css`
|
||||
:host {
|
||||
flex: 0 0 auto !important;
|
||||
}
|
||||
`,
|
||||
];
|
||||
}
|
||||
|
||||
set image(new_image : string)
|
||||
{
|
||||
let oldValue = this.__src;
|
||||
|
Loading…
Reference in New Issue
Block a user