fix rollback button slot
This commit is contained in:
@@ -97,16 +97,14 @@ export class UmbDocumentWorkspaceViewInfoHistoryElement extends UmbLitElement {
|
|||||||
|
|
||||||
override render() {
|
override render() {
|
||||||
return html`<uui-box>
|
return html`<uui-box>
|
||||||
<div id="rollback" slot="header">
|
<umb-localize slot="headline" key="general_history">History</umb-localize>
|
||||||
<h2><umb-localize key="general_history">History</umb-localize></h2>
|
<uui-button
|
||||||
<uui-button
|
slot="header-actions"
|
||||||
label=${this.localize.term('actions_rollback')}
|
label=${this.localize.term('actions_rollback')}
|
||||||
look="secondary"
|
look="secondary"
|
||||||
slot="actions"
|
@click=${this.#onRollbackModalOpen}>
|
||||||
@click=${this.#onRollbackModalOpen}>
|
<uui-icon name="icon-undo"></uui-icon> ${this.localize.term('actions_rollback')}
|
||||||
<uui-icon name="icon-undo"></uui-icon> ${this.localize.term('actions_rollback')}
|
</uui-button>
|
||||||
</uui-button>
|
|
||||||
</div>
|
|
||||||
${this._items ? this.#renderHistory() : html`<uui-loader-circle></uui-loader-circle> `}
|
${this._items ? this.#renderHistory() : html`<uui-loader-circle></uui-loader-circle> `}
|
||||||
${this.#renderPagination()}
|
${this.#renderPagination()}
|
||||||
</uui-box> `;
|
</uui-box> `;
|
||||||
@@ -167,18 +165,6 @@ export class UmbDocumentWorkspaceViewInfoHistoryElement extends UmbLitElement {
|
|||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#rollback {
|
|
||||||
display: flex;
|
|
||||||
width: 100%;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
|
|
||||||
#rollback h2 {
|
|
||||||
font-size: var(--uui-type-h5-size);
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
uui-tag uui-icon {
|
uui-tag uui-icon {
|
||||||
margin-right: var(--uui-size-space-1);
|
margin-right: var(--uui-size-space-1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user