Skip to content

Commit

Permalink
Prevent y overflow for entities
Browse files Browse the repository at this point in the history
I think it's prevalent in numerous places via the underlying component,
I just wanted to remove it.
  • Loading branch information
kizza committed Feb 24, 2024
1 parent 9916fe1 commit 5df0a37
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 5df0a37

Please sign in to comment.