Skip to content

Commit

Permalink
Prevent y overflow for entities
Browse files Browse the repository at this point in the history
  • Loading branch information
kizza committed Feb 23, 2024
1 parent 0c9ca69 commit 4a43700
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/elements/entities-picker.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fireEvent, HomeAssistant } from 'custom-card-helpers';
import { html, LitElement } from 'lit';
import { css, html, LitElement } from 'lit';
import { customElement, property, state } from 'lit/decorators.js';
import { EntityFilter } from '../types';
import { loadHomeAsssistantComponents } from '../util';
Expand Down Expand Up @@ -73,6 +73,12 @@ export class EntitiesPicker extends LitElement {
(event.currentTarget as any).value = ''; // Reset value of adding element
this._updateEntities([...this.currentEntities, event.detail.value]);
}

static styles = css`
:host {
overflow-x: hidden;
}
`
}

declare global {
Expand Down

0 comments on commit 4a43700

Please sign in to comment.