100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Update mobile styles for or-asset-viewer
robindekkers250e60d486f8
diff --git a/ui/component/or-asset-viewer/src/index.ts b/ui/component/or-asset-viewer/src/index.tsindex bb9f8fe03..c7ff05eab 100644--- a/ui/component/or-asset-viewer/src/index.ts+++ b/ui/component/or-asset-viewer/src/index.ts@@ -111,6 +111,7 @@ export class OrAssetViewer extends subscribe(manager)(translate(i18next)(LitElemgridColumnEnd: "13",gridRowStart: "2",gridRowEnd: "4",+ minHeight: "400px"},fieldStyles: {location: {@@ -219,7 +220,7 @@ export class OrAssetViewer extends subscribe(manager)(translate(i18next)(LitElem<div class="title"><or-icon title="${descriptor && descriptor.type ? descriptor.type : "unset"}" style="--or-icon-fill: ${descriptor && descriptor.color ? "#" + descriptor.color : "unset"}" icon="${descriptor && descriptor.icon ? descriptor.icon : AssetType.THING.icon}"></or-icon>${this.asset.name}</div>- <div class="created">Aangemaakt op: ${formattedDate}</div>+ <div class="created mobileHidden">Aangemaakt op: ${formattedDate}</div></div>${html`${Object.entries(this._viewerConfig.panels).map(([name, panelConfig]) => {const panelTemplate = OrAssetViewer.getPanel(name, this.asset!, this._attributes!, this._viewerConfig!, panelConfig, this.shadowRoot);diff --git a/ui/component/or-asset-viewer/src/style.ts b/ui/component/or-asset-viewer/src/style.tsindex 66adc57c9..5d4ecb3cf 100644--- a/ui/component/or-asset-viewer/src/style.ts+++ b/ui/component/or-asset-viewer/src/style.ts@@ -154,8 +154,16 @@ export const style = css`grid-area: auto!important;}+ .panel {+ padding: 10px;+ border-radius: 0;+ border-right: none;+ border-left: none;+ }+#container {grid-template-columns: 1fr!important;+ padding: 20px 0;}}`;\ No newline at end of file