mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 12:51:52 +02:00
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 '../Et2Image/Et2Image';
|
||||||
import {SlIconButton} from "@shoelace-style/shoelace";
|
import {SlIconButton} from "@shoelace-style/shoelace";
|
||||||
import {ButtonMixin} from "./ButtonMixin";
|
import {ButtonMixin} from "./ButtonMixin";
|
||||||
|
import shoelace from "../Styles/shoelace";
|
||||||
|
import {css} from "@lion/core";
|
||||||
|
|
||||||
|
|
||||||
export class Et2ButtonIcon extends ButtonMixin(Et2InputWidget(SlIconButton))
|
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)
|
set image(new_image : string)
|
||||||
{
|
{
|
||||||
let oldValue = this.__src;
|
let oldValue = this.__src;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user