Skip to content

armgit / core

Public Imported from GitHub
0

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

Fix or-map-asset-card's CSS width breakpoint to 40em, which breaks at approximately 560px

Panos Kalogeropoulos0ccaa6c030c5
diff --git a/ui/app/manager/src/pages/page-map.ts b/ui/app/manager/src/pages/page-map.ts
index 7b2a63595..1e024319a 100644
--- a/ui/app/manager/src/pages/page-map.ts
+++ b/ui/app/manager/src/pages/page-map.ts
@@ -147,7 +147,7 @@ export class PageMap extends Page<MapStateKeyed> {
width: 100%;
}
- @media only screen and (min-width: 415px){
+ @media only screen and (min-width: 40em){
or-map-asset-card {
position: absolute;
top: 10px;
diff --git a/ui/component/or-map/src/style.ts b/ui/component/or-map/src/style.ts
index a1df4d83f..f20890ae6 100644
--- a/ui/component/or-map/src/style.ts
+++ b/ui/component/or-map/src/style.ts
@@ -228,7 +228,7 @@ export const mapAssetCardStyle = css`
padding: 5px 12px;
}
- @media only screen and (min-width: 415px){
+ @media only screen and (min-width: 40em){
#card-container {
height: 400px; /* fallback for IE */
height: max-content;