Skip to content

armgit / core

Public Imported from GitHub
0

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

make table headers sticky

Vincent90b2301dbe7e
diff --git a/ui/component/or-table/src/index.ts b/ui/component/or-table/src/index.ts
index 55b737488..d1752b3e8 100644
--- a/ui/component/or-table/src/index.ts
+++ b/ui/component/or-table/src/index.ts
@@ -53,6 +53,12 @@ export class OrTable extends LitElement {
max-height: 500px;
overflow: auto;
}
+
+ th {
+ position: sticky;
+ top: 0;
+ background-color: var(--internal-or-asset-viewer-panel-color);
+ }
</style>
<div class="mdc-data-table">