From f5193218e5f7bd177b9e8f908cd2631f9304f87e Mon Sep 17 00:00:00 2001 From: softsimon Date: Mon, 7 Feb 2022 00:08:07 +0400 Subject: [PATCH] Mobile responsiveness fixes --- .../asset-group/asset-group.component.html | 13 +++++++++++-- .../asset-group/asset-group.component.scss | 15 +++++++++------ .../assets-featured.component.scss | 15 +++++++++------ .../app/components/assets/assets.component.html | 16 ++++++++-------- 4 files changed, 37 insertions(+), 22 deletions(-) diff --git a/frontend/src/app/components/assets/asset-group/asset-group.component.html b/frontend/src/app/components/assets/asset-group/asset-group.component.html index 46b3b9eae..ac0ed4327 100644 --- a/frontend/src/app/components/assets/asset-group/asset-group.component.html +++ b/frontend/src/app/components/assets/asset-group/asset-group.component.html @@ -1,4 +1,4 @@ -
+

{{ group.group.name }}

@@ -14,7 +14,9 @@
- + + + @@ -24,3 +26,10 @@
+ + +
+
+
+
+
\ No newline at end of file diff --git a/frontend/src/app/components/assets/asset-group/asset-group.component.scss b/frontend/src/app/components/assets/asset-group/asset-group.component.scss index 7a0735a24..c0b31f273 100644 --- a/frontend/src/app/components/assets/asset-group/asset-group.component.scss +++ b/frontend/src/app/components/assets/asset-group/asset-group.component.scss @@ -25,12 +25,17 @@ align-items: center; justify-content: center; flex-wrap: wrap; + @media (max-width: 767.98px) { + width: 150px; + height: 150px; + } } .title { font-size: 14px; font-weight: bold; margin-top: 10px; + text-align: center; } .sub-title { @@ -40,12 +45,10 @@ .assetIcon { width: 100px; height: 100px; -} - -.image { - width: 100px; - height: 100px; - align-self: center; + @media (max-width: 767.98px) { + width: 50px; + height: 50px; + } } .view-link { diff --git a/frontend/src/app/components/assets/assets-featured/assets-featured.component.scss b/frontend/src/app/components/assets/assets-featured/assets-featured.component.scss index 41be2b748..0ff049d16 100644 --- a/frontend/src/app/components/assets/assets-featured/assets-featured.component.scss +++ b/frontend/src/app/components/assets/assets-featured/assets-featured.component.scss @@ -13,12 +13,17 @@ align-items: center; justify-content: center; flex-wrap: wrap; + @media (max-width: 767.98px) { + width: 150px; + height: 150px; + } } .title { font-size: 14px; font-weight: bold; margin-top: 10px; + text-align: center; } .sub-title { @@ -29,12 +34,10 @@ .assetIcon { width: 100px; height: 100px; -} - -.image { - width: 100px; - height: 100px; - align-self: center; + @media (max-width: 767.98px) { + width: 50px; + height: 50px; + } } .view-link { diff --git a/frontend/src/app/components/assets/assets.component.html b/frontend/src/app/components/assets/assets.component.html index 677e25058..d5accc9d7 100644 --- a/frontend/src/app/components/assets/assets.component.html +++ b/frontend/src/app/components/assets/assets.component.html @@ -3,15 +3,15 @@ Name Ticker - Issuer domain - Asset ID + Issuer domain + Asset ID {{ asset.name }} {{ asset.ticker }} - {{ asset.entity && asset.entity.domain }} - {{ asset.asset_id | shortenString : 13 }} + {{ asset.entity && asset.entity.domain }} + {{ asset.asset_id | shortenString : 13 }} @@ -28,15 +28,15 @@ Name Ticker - Issuer domain - Asset ID + Issuer domain + Asset ID - - + +