Skip to content

armgit / core

Public Imported from GitHub
0

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

UI update: style or-chart and attribute-card

Robin Dekkers0e3486f05b46
diff --git a/ui/component/or-attribute-card/src/index.ts b/ui/component/or-attribute-card/src/index.ts
index f9f68b853..d9fb71ec3 100644
--- a/ui/component/or-attribute-card/src/index.ts
+++ b/ui/component/or-attribute-card/src/index.ts
@@ -88,13 +88,16 @@ const style = css`
align-items: center;
}
- .main-number {
+ .main-number {
+ color: var(--internal-or-asset-viewer-title-text-color);
font-size: 42px;
}
.main-number-unit {
font-size: 42px;
- color: var(--or-app-color3, ${unsafeCSS(DefaultColor3)});
+ color: var(--internal-or-asset-viewer-title-text-color);
+ font-weight: 200;
+ margin-left: 5px;
}
.chart-wrapper {
diff --git a/ui/component/or-chart/src/index.ts b/ui/component/or-chart/src/index.ts
index b9c7860b4..27b45b492 100644
--- a/ui/component/or-chart/src/index.ts
+++ b/ui/component/or-chart/src/index.ts
@@ -224,9 +224,6 @@ const style = css`
--or-icon-fill: var(--or-app-color4);
}
- #attribute-list {
- }
-
.attribute-list-item-label {
display: flex;
flex: 1 1 0;
@@ -273,6 +270,7 @@ const style = css`
flex: 1 1 0;
position: relative;
overflow: auto;
+ min-height: 400px;
max-height: 550px;
}
diff --git a/ui/component/or-data-viewer/src/style.ts b/ui/component/or-data-viewer/src/style.ts
index 44fb1b2d6..f2681a239 100644
--- a/ui/component/or-data-viewer/src/style.ts
+++ b/ui/component/or-data-viewer/src/style.ts
@@ -32,6 +32,7 @@ export const style = css`
}
#container {
+ width: 100%;
max-width: 1400px;
box-sizing: border-box;
display: grid;