Use haStyleScrollbar for integration card lists (#9051)

This commit is contained in:
Joakim Sørensen 2021-04-30 15:01:31 +02:00 committed by GitHub
parent 7add6eb736
commit 551d3ffdf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ import {
showConfirmationDialog, showConfirmationDialog,
showPromptDialog, showPromptDialog,
} from "../../../dialogs/generic/show-dialog-box"; } from "../../../dialogs/generic/show-dialog-box";
import { haStyle } from "../../../resources/styles"; import { haStyle, haStyleScrollbar } from "../../../resources/styles";
import type { HomeAssistant } from "../../../types"; import type { HomeAssistant } from "../../../types";
import type { ConfigEntryExtended } from "./ha-config-integrations"; import type { ConfigEntryExtended } from "./ha-config-integrations";
import "./ha-integration-header"; import "./ha-integration-header";
@ -139,7 +139,7 @@ export class HaIntegrationCard extends LitElement {
private _renderGroupedIntegration(): TemplateResult { private _renderGroupedIntegration(): TemplateResult {
return html` return html`
<paper-listbox> <paper-listbox class="ha-scrollbar">
${this.items.map( ${this.items.map(
(item) => (item) =>
html`<paper-item html`<paper-item
@ -586,6 +586,7 @@ export class HaIntegrationCard extends LitElement {
static get styles(): CSSResult[] { static get styles(): CSSResult[] {
return [ return [
haStyle, haStyle,
haStyleScrollbar,
css` css`
ha-card { ha-card {
display: flex; display: flex;