Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

bit of css to position things according to design

Vincent01e38783205e
diff --git a/ui/component/or-asset-viewer/src/index.ts b/ui/component/or-asset-viewer/src/index.ts
index e8aff928b..d3914a6ad 100644
--- a/ui/component/or-asset-viewer/src/index.ts
+++ b/ui/component/or-asset-viewer/src/index.ts
@@ -591,7 +591,14 @@ export class OrAssetViewer extends subscribe(manager)(translate(i18next)(LitElem
});
content = html`
- <or-icon icon="plus-minus" @click="${() => openModal()}"></or-icon>
+ <style>
+ #asset-group-add-remove-columns {
+ position: absolute;
+ top: var(--internal-or-asset-viewer-panel-padding);
+ right: var(--internal-or-asset-viewer-panel-padding);
+ }
+ </style>
+ <or-icon id="asset-group-add-remove-columns" icon="plus-minus" @click="${() => openModal()}"></or-icon>
${until(renderTable, `<span>Loading...</span>`)}
`;
diff --git a/ui/component/or-table/src/index.ts b/ui/component/or-table/src/index.ts
index c7a313a82..118430128 100644
--- a/ui/component/or-table/src/index.ts
+++ b/ui/component/or-table/src/index.ts
@@ -41,6 +41,19 @@ export class OrTable extends LitElement {
protected render() {
return html`
+ <style>
+ :host {
+ width: 100%;
+ }
+
+ .mdc-data-table {
+ width: 100%;
+ max-width: 100%;
+ max-height: 500px;
+ overflow: auto;
+ }
+ </style>
+
<div class="mdc-data-table">
<table class="mdc-data-table__table" aria-label="Dessert calories">
<thead>