diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6d2e34a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "iis.configDir": "" +} \ No newline at end of file diff --git a/packages/v3/src/css/tab.ts b/packages/v3/src/css/tab.ts index ef03a9b..7e837d5 100644 --- a/packages/v3/src/css/tab.ts +++ b/packages/v3/src/css/tab.ts @@ -3,9 +3,11 @@ import { css } from "lit"; export default css` .tab-header { display: inline-flex; - min-height: 40px; + max-width:90%; font-weight: 400; padding-inline: 1.5em; + padding-top: 0.5em; + padding-bottom: 0.5em; align-items: center; border-radius: 12px 12px 0px 0px; background-color: rgba(127, 127, 127, 0.3); diff --git a/packages/v3/src/esp-entity-table.ts b/packages/v3/src/esp-entity-table.ts index 3063e88..56d4faf 100644 --- a/packages/v3/src/esp-entity-table.ts +++ b/packages/v3/src/esp-entity-table.ts @@ -112,7 +112,7 @@ export class EntityTable extends LitElement implements RestAction { const sortB = b.sorting_weight ?? b.name; return a.sorting_group < b.sorting_group ? -1 - : a.sorting_group == b.sorting_group + : a.sorting_group === b.sorting_group ? sortA < sortB ? -1 : 1 @@ -153,12 +153,12 @@ export class EntityTable extends LitElement implements RestAction { this.groups = EntityTable.ENTITY_CATEGORIES.map((category, index) => ({ name: category, - sorting_weight: index - 1000 + sorting_weight: index })); this.groups.push({ name: EntityTable.ENTITY_UNDEFINED, - sorting_weight: -10001 + sorting_weight: -1 }); }