fix: lock would go out of the button

This commit is contained in:
Jérôme Wiedemann 2023-07-23 16:26:06 +00:00
parent bf075b00e4
commit 0b3e4d331c
2 changed files with 5 additions and 1 deletions

View File

@ -762,8 +762,8 @@ class ButtonCard extends LitElement {
${this._buttonContent(this._stateObj, configState, buttonColor)}
<mwc-ripple id="ripple"></mwc-ripple>
</ha-card>
${this._getLock(lockStyle)}
</div>
${this._getLock(lockStyle)}
${this._config?.tooltip
? html`
<span class="tooltiptext" style=${styleMap(tooltipStyleFromConfig)}>

View File

@ -74,6 +74,10 @@ export const styles = css`
white-space: nowrap;
overflow: hidden;
}
#aspect-ratio {
position: relative;
}
#overlay {
align-items: flex-start;
justify-content: flex-end;