Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/common/search/search-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class SearchInput extends LitElement {
protected render(): TemplateResult {
return html`
<style>
.no-underline {
.no-underline:not(.focused) {
--paper-input-container-underline: {
display: none;
height: 0;
Expand Down
8 changes: 7 additions & 1 deletion src/layouts/hass-tabs-subpage-data-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ export class HaTabsSubpageDataTable extends LitElement {
<slot name="header">
<div class="search-toolbar">
<search-input
.filter=${this.filter}
class="header"
no-label-float
no-underline
@value-changed=${this._handleSearchChange}
Expand All @@ -119,6 +121,7 @@ export class HaTabsSubpageDataTable extends LitElement {
<slot name="header">
<div class="table-header">
<search-input
.filter=${this.filter}
no-label-float
no-underline
@value-changed=${this._handleSearchChange}
Expand Down Expand Up @@ -153,13 +156,16 @@ export class HaTabsSubpageDataTable extends LitElement {
border-bottom: 1px solid rgba(var(--rgb-primary-text-color), 0.12);
}
.search-toolbar {
margin-left: -24px;
color: var(--secondary-text-color);
}
search-input {
position: relative;
top: 2px;
}
search-input.header {
left: -8px;
top: -7px;
}
`;
}
}
16 changes: 7 additions & 9 deletions src/layouts/hass-tabs-subpage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class HassTabsSubpage extends LitElement {
></ha-paper-icon-button-arrow-prev>
${this.narrow
? html`
<div main-title><slot name="header"></slot></div>
<div class="main-title"><slot name="header"></slot></div>
`
: ""}
${tabs.length > 1 || !this.narrow
Expand Down Expand Up @@ -228,14 +228,17 @@ class HassTabsSubpage extends LitElement {
ha-menu-button,
ha-paper-icon-button-arrow-prev,
::slotted([slot="toolbar-icon"]) {
flex-shrink: 0;
pointer-events: auto;
color: var(--sidebar-icon-color);
}

[main-title] {
margin: 0 0 0 24px;
.main-title {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
max-height: 40px;
line-height: 20px;
flex-grow: 1;
}

.content {
Expand All @@ -247,11 +250,6 @@ class HassTabsSubpage extends LitElement {
-webkit-overflow-scrolling: touch;
}

#toolbar-icon {
position: absolute;
right: 16px;
}

:host([narrow]) .content {
height: calc(100% - 128px);
}
Expand Down
4 changes: 2 additions & 2 deletions src/panels/config/entities/ha-config-entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class HaConfigEntities extends SubscribeMixin(LitElement) {
type: "icon",
sortable: true,
filterable: true,
width: "55px",
width: "68px",
template: (_status, entity: any) =>
entity.unavailable || entity.disabled_by || entity.readonly
? html`
Expand Down Expand Up @@ -169,7 +169,7 @@ export class HaConfigEntities extends SubscribeMixin(LitElement) {
),
sortable: true,
filterable: true,
width: "20%",
width: "25%",
};
columns.platform = {
title: this.hass.localize(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class HaConfigLovelaceDashboards extends LitElement {
),
sortable: true,
filterable: true,
width: "15%",
width: "20%",
template: (mode) =>
html`
${this.hass.localize(
Expand Down Expand Up @@ -143,7 +143,7 @@ export class HaConfigLovelaceDashboards extends LitElement {
"ui.panel.config.lovelace.dashboards.picker.headers.sidebar"
),
type: "icon",
width: "100px",
width: "121px",
template: (sidebar) =>
sidebar
? html`
Expand Down