mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 15:56:35 +00:00
Cleanup virtualizer styles (#9327)
This commit is contained in:
parent
bc5bd35448
commit
8a1eab7ceb
@ -246,7 +246,7 @@ export class HaDataTable extends LitElement {
|
|||||||
aria-rowcount=${this._filteredData.length + 1}
|
aria-rowcount=${this._filteredData.length + 1}
|
||||||
style=${styleMap({
|
style=${styleMap({
|
||||||
height: this.autoHeight
|
height: this.autoHeight
|
||||||
? `${(this._filteredData.length || 1) * 53 + 57}px`
|
? `${(this._filteredData.length || 1) * 53 + 53}px`
|
||||||
: `calc(100% - ${this._headerHeight}px)`,
|
: `calc(100% - ${this._headerHeight}px)`,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
@ -919,13 +919,11 @@ export class HaDataTable extends LitElement {
|
|||||||
color: var(--secondary-text-color);
|
color: var(--secondary-text-color);
|
||||||
}
|
}
|
||||||
.scroller {
|
.scroller {
|
||||||
display: flex;
|
|
||||||
position: relative;
|
|
||||||
contain: strict;
|
|
||||||
height: calc(100% - 57px);
|
height: calc(100% - 57px);
|
||||||
}
|
}
|
||||||
.mdc-data-table__table:not(.auto-height) .scroller {
|
|
||||||
overflow: auto;
|
.mdc-data-table__table.auto-height .scroller {
|
||||||
|
overflow-y: hidden !important;
|
||||||
}
|
}
|
||||||
.grows {
|
.grows {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
@ -638,18 +638,6 @@ export class QuickBar extends LitElement {
|
|||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uni-virtualizer-host {
|
|
||||||
display: block;
|
|
||||||
position: relative;
|
|
||||||
contain: strict;
|
|
||||||
overflow: auto;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.uni-virtualizer-host > * {
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
mwc-list-item {
|
mwc-list-item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
@ -353,15 +353,7 @@ class HaLogbook extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
:host([virtualize]) .container {
|
:host([virtualize]) .container {
|
||||||
display: block;
|
|
||||||
position: relative;
|
|
||||||
contain: strict;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container > * {
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.narrow .entry {
|
.narrow .entry {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user