render headline in language workspace

This commit is contained in:
Mads Rasmussen
2023-02-09 11:00:05 +01:00
parent 7b3e183e49
commit 21d198cba9
2 changed files with 14 additions and 16 deletions

View File

@@ -21,13 +21,8 @@ export class UmbLanguageRootWorkspaceElement extends UmbLitElement implements Um
height: 100%;
}
umb-table {
padding: 0;
margin: var(--uui-size-space-3) var(--uui-size-space-6);
}
#add-language {
margin-left: var(--uui-size-space-6);
text-decoration: none;
#main {
margin: var(--uui-size-space-6);
}
`,
];
@@ -135,11 +130,17 @@ export class UmbLanguageRootWorkspaceElement extends UmbLitElement implements Um
render() {
return html`
<umb-body-layout no-header-background>
<a id="add-language" slot="header" href="section/settings/language/create/root">
<uui-button label="Add language" look="outline" color="default"></uui-button>
</a>
<umb-table .config=${this._tableConfig} .columns=${this._tableColumns} .items=${this._tableItems}></umb-table>
<umb-body-layout headline="Languages">
<div id="main">
<div>
<uui-button
label="Add language"
look="outline"
color="default"
href="section/settings/language/create/root"></uui-button>
</div>
<umb-table .config=${this._tableConfig} .columns=${this._tableColumns} .items=${this._tableItems}></umb-table>
</div>
</umb-body-layout>
`;
}

View File

@@ -21,12 +21,9 @@ export class UmbBodyLayout extends LitElement {
justify-content: space-between;
width: 100%;
min-height: 60px;
box-sizing: border-box;
}
:host(:not([no-header-background])) #header {
background-color: var(--uui-color-surface);
border-bottom: 1px solid var(--uui-color-border);
box-sizing: border-box;
}
#headline {