Fix responsive design issues

Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
This commit is contained in:
Sudhanshu Gautam 2019-09-05 00:03:52 +05:30
parent 740383d6be
commit db14840f4a
9 changed files with 144 additions and 77 deletions

View file

@ -629,7 +629,7 @@ class Home extends React.Component {
{this.state.selection.device.deviceManifest.length})
</Typography>
</ExpansionPanelSummary>
<ExpansionPanelDetails>
<ExpansionPanelDetails className="packages">
<div>
{this.state.selection.device.deviceManifest.map(
package_name => (
@ -640,7 +640,7 @@ class Home extends React.Component {
</ExpansionPanelDetails>
</ExpansionPanel>
</Grid>
<Grid item xs>
<Grid item xs className="downloads">
<b>{this.props.t('Downloads')}: </b>
{this.state.selection.device.images.map(image => (
<div key={image.name}>

View file

@ -4,10 +4,19 @@ $bg-color: #f0f0f0;
margin-top: 30px;
margin-bottom: 100px;
@media all and (max-width: 820px) {
margin-top: 15px;
margin-bottom: 100px;
}
.home-container-paper {
padding: 30px;
text-align: left;
@media all and (max-width: 820px) {
padding: 15px;
}
.warning-432 {
background-color: $bg-color;
padding: 10px;
@ -17,7 +26,7 @@ $bg-color: #f0f0f0;
.icon {
margin: 0 20px 0 10px;
color: #F9A825
color: #f9a825;
}
}
@ -29,7 +38,17 @@ $bg-color: #f0f0f0;
border: 1px solid #e3e3e3;
border-radius: 7px;
margin-top: 16px !important;
@media all and (max-width: 820px) {
width: 100%;
}
}
.installed-packages .packages {
overflow: auto;
word-wrap: none;
white-space: nowrap;
}
.installed-packages::before {
display: none;
}
@ -89,12 +108,17 @@ $bg-color: #f0f0f0;
margin-bottom: 15px;
}
.downloads {
@media all and (max-width: 820px) {
margin-top: 20px;
}
.download-button {
margin-top: 17px;
.download-icon {
margin-right: 10px;
.download-button {
margin-top: 17px;
.download-icon {
margin-right: 10px;
}
}
}
@ -141,8 +165,9 @@ $bg-color: #f0f0f0;
background-color: $bg-color;
}
.package:focus, .package:active {
transition: .2s;
.package:focus,
.package:active {
transition: 0.2s;
background-color: darken($bg-color, 15%);
}
}