Skip to content

armgit / core

Public Imported from GitHub
0

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

put a "line" underneath the header and the first column of a table when scrolling

Vincent7cd206181b80
diff --git a/ui/component/or-table/src/index.ts b/ui/component/or-table/src/index.ts
index 8c76be8b2..c8c944c55 100644
--- a/ui/component/or-table/src/index.ts
+++ b/ui/component/or-table/src/index.ts
@@ -35,7 +35,17 @@ const style = css`
.mdc-data-table.has-sticky-first-column tr th:first-of-type {
z-index: 2;
}
-
+
+ thead th {
+ box-shadow: 0 1px 0 0 rgb(229, 229, 229);
+ }
+ .mdc-data-table.has-sticky-first-column tr td:first-of-type {
+ box-shadow: 1px 0 0 0 rgb(229, 229, 229);
+ }
+ thead th:first-of-type {
+ box-shadow: 1px 1px 0 0 rgb(229, 229, 229);
+ }
+
th {
position: sticky;
top: 0;