Skip to content

armgit / core

Public Imported from GitHub
0

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

fix table responsiveness

Vincent76490de3559e
diff --git a/ui/component/or-asset-viewer/src/style.ts b/ui/component/or-asset-viewer/src/style.ts
index d0b7707f4..d15632cad 100644
--- a/ui/component/or-asset-viewer/src/style.ts
+++ b/ui/component/or-asset-viewer/src/style.ts
@@ -45,6 +45,15 @@ export const style = css`
-o-animation: fadein 0.3s; /* Opera < 12.1 */
animation: fadein 0.3s;
}
+
+ @media only screen and (max-width: 767px) {
+ #wrapper {
+ position: absolute;
+ left: 0;
+ right: 0;
+ }
+ }
+
@keyframes fadein {
from { opacity: 0; }
diff --git a/ui/component/or-table/src/index.ts b/ui/component/or-table/src/index.ts
index 316af0b33..8c76be8b2 100644
--- a/ui/component/or-table/src/index.ts
+++ b/ui/component/or-table/src/index.ts
@@ -15,19 +15,13 @@ interface TableOptions {
// language=CSS
const style = css`
- :host {
- width: 100%;
- }
-
:host([hidden]) {
display: none;
}
.mdc-data-table {
width: 100%;
- max-width: 100%;
max-height: 500px;
- overflow: auto;
}
/* first column should be sticky*/