aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorDan Miller <danjm.com@gmail.com>2018-11-09 00:03:31 +0800
committerDan Miller <danjm.com@gmail.com>2018-12-04 11:36:22 +0800
commitd5411e772d1efd8d723eb81403fa22b03b904f49 (patch)
treef606a9c0c12035055500696fb06d9cdc72e10859 /ui/app/components
parenta44596ec0dc45fa0d3a950847ff68f7a53f9625f (diff)
downloadtangerine-wallet-browser-d5411e772d1efd8d723eb81403fa22b03b904f49.tar
tangerine-wallet-browser-d5411e772d1efd8d723eb81403fa22b03b904f49.tar.gz
tangerine-wallet-browser-d5411e772d1efd8d723eb81403fa22b03b904f49.tar.bz2
tangerine-wallet-browser-d5411e772d1efd8d723eb81403fa22b03b904f49.tar.lz
tangerine-wallet-browser-d5411e772d1efd8d723eb81403fa22b03b904f49.tar.xz
tangerine-wallet-browser-d5411e772d1efd8d723eb81403fa22b03b904f49.tar.zst
tangerine-wallet-browser-d5411e772d1efd8d723eb81403fa22b03b904f49.zip
Make gas customization modal responsive.
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/gas-customization/gas-modal-page-container/index.scss8
-rw-r--r--ui/app/components/gas-customization/gas-price-button-group/index.scss8
-rw-r--r--ui/app/components/gas-customization/gas-price-chart/index.scss5
-rw-r--r--ui/app/components/page-container/index.scss6
4 files changed, 26 insertions, 1 deletions
diff --git a/ui/app/components/gas-customization/gas-modal-page-container/index.scss b/ui/app/components/gas-customization/gas-modal-page-container/index.scss
index debd9b5ee..9486eaf8f 100644
--- a/ui/app/components/gas-customization/gas-modal-page-container/index.scss
+++ b/ui/app/components/gas-customization/gas-modal-page-container/index.scss
@@ -6,6 +6,10 @@
max-width: 391px;
min-height: 585px;
+ @media screen and (max-width: $break-small) {
+ max-width: 344px;
+ }
+
&__header {
padding: 0px;
padding-top: 16px;
@@ -60,6 +64,10 @@
}
.gas-modal-content {
+ @media screen and (max-width: $break-small) {
+ width: 100%;
+ }
+
&__basic-tab {
height: 219px;
}
diff --git a/ui/app/components/gas-customization/gas-price-button-group/index.scss b/ui/app/components/gas-customization/gas-price-button-group/index.scss
index 22661ed7b..6e9d01c6e 100644
--- a/ui/app/components/gas-customization/gas-price-button-group/index.scss
+++ b/ui/app/components/gas-customization/gas-price-button-group/index.scss
@@ -67,6 +67,10 @@
justify-content: stretch;
max-width: 260px;
+ @media screen and (max-width: $break-small) {
+ max-width: 230px;
+ }
+
&__button-fiat-price {
font-size: 13px;
}
@@ -98,6 +102,10 @@
padding-top: 9px;
padding-left: 8.5px;
+ @media screen and (max-width: $break-small) {
+ padding-left: 4px;
+ }
+
div {
display: flex;
flex-flow: column;
diff --git a/ui/app/components/gas-customization/gas-price-chart/index.scss b/ui/app/components/gas-customization/gas-price-chart/index.scss
index 0990d6abb..097543104 100644
--- a/ui/app/components/gas-customization/gas-price-chart/index.scss
+++ b/ui/app/components/gas-customization/gas-price-chart/index.scss
@@ -1,12 +1,17 @@
.gas-price-chart {
display: flex;
position: relative;
+ justify-content: center;
&__root {
max-height: 154px;
max-width: 391px;
position: relative;
overflow: hidden;
+
+ @media screen and (max-width: $break-small) {
+ max-width: 326px;
+ }
}
.tick text, .c3-axis-x-label, .c3-axis-y-label {
diff --git a/ui/app/components/page-container/index.scss b/ui/app/components/page-container/index.scss
index ba1215e84..1634ab012 100644
--- a/ui/app/components/page-container/index.scss
+++ b/ui/app/components/page-container/index.scss
@@ -194,10 +194,14 @@
.page-container {
height: 100%;
width: 100%;
- overflow-y: auto;
background-color: $white;
border-radius: 0;
flex: 1;
+
+ &__content {
+ display: flex;
+ overflow-y: initial;
+ }
}
}