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
UI update: styling of asset tree expander
Don42972592dd67
diff --git a/ui/component/or-asset-tree/src/style.ts b/ui/component/or-asset-tree/src/style.tsindex 9d2bd0318..5c59ee78a 100644--- a/ui/component/or-asset-tree/src/style.ts+++ b/ui/component/or-asset-tree/src/style.ts@@ -239,7 +239,7 @@ export const style = css`}.expander {- width: 26px;+ width: 36px;height: 100%;display: inline-block;background-repeat: no-repeat;@@ -250,6 +250,10 @@ export const style = css`.expander[data-expandable] {background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='rgb(204, 204, 204)' viewBox='0 0 24 24'%3E%3Cpath d='${unsafeCSS(mdi.icons["chevron-right"])}'/%3E%3C/svg%3E");}++ .expander[data-expandable]:hover {+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='${unsafeCSS(mdi.icons["chevron-right"])}'/%3E%3C/svg%3E");+ }li[data-expanded] > .node-container .expander {background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='${unsafeCSS(mdi.icons["chevron-down"])}'/%3E%3C/svg%3E") !important;@@ -279,5 +283,11 @@ export const style = css`text-align: center;margin: 0 auto;}++ @media only screen and (min-width: 768px){+ .expander {+ width: 26px;+ }+ }`;\ No newline at end of filediff --git a/ui/component/or-header/src/style.ts b/ui/component/or-header/src/style.tsindex 819cbf184..6f3f75e78 100644--- a/ui/component/or-header/src/style.ts+++ b/ui/component/or-header/src/style.ts@@ -148,7 +148,7 @@ export const style = css`line-height: var(--internal-or-header-height);}- /* Wide layout: when the viewport width is bigger than 460px, layout+ /* Wide layout: when the viewport width is bigger than 640px, layoutchanges to a wide layout. */@media (min-width: 640px) {