mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 18:36:35 +00:00
Fix ha-bar display issue on firefox (#7263)
This commit is contained in:
parent
80b7c840e2
commit
667c5744f2
@ -34,8 +34,8 @@ export class HaBar extends LitElement {
|
|||||||
return svg`
|
return svg`
|
||||||
<svg>
|
<svg>
|
||||||
<g>
|
<g>
|
||||||
<rect></rect>
|
<rect/>
|
||||||
<rect width="${valuePrecentage}%"></rect>
|
<rect width="${valuePrecentage}%"/>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
`;
|
`;
|
||||||
@ -43,6 +43,9 @@ export class HaBar extends LitElement {
|
|||||||
|
|
||||||
static get styles(): CSSResult {
|
static get styles(): CSSResult {
|
||||||
return css`
|
return css`
|
||||||
|
rect {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
rect:first-child {
|
rect:first-child {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
fill: var(--ha-bar-background-color, var(--secondary-background-color));
|
fill: var(--ha-bar-background-color, var(--secondary-background-color));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user