mirror of
https://github.com/responsively-org/responsively-app
synced 2024-11-10 23:04:20 +00:00
Merge pull request #331 from manojVivek/bugfix/device-width-bug
Device width bug fix
This commit is contained in:
commit
291e0e9517
2 changed files with 6 additions and 9 deletions
|
@ -662,7 +662,11 @@ class WebView extends Component {
|
|||
screenshotInProgress,
|
||||
} = this.state;
|
||||
const deviceStyles = {
|
||||
outline: `4px solid ${this.props.browser.userPreferences.deviceOutlineStyle}`,
|
||||
outline: `4px solid ${
|
||||
this._isDevToolsOpen()
|
||||
? `#6075ef`
|
||||
: this.props.browser.userPreferences.deviceOutlineStyle
|
||||
}`,
|
||||
width: deviceDimensions.width,
|
||||
height: deviceDimensions.height,
|
||||
};
|
||||
|
@ -782,9 +786,7 @@ class WebView extends Component {
|
|||
</div>
|
||||
</div>
|
||||
<div
|
||||
className={cx(styles.deviceContainer, {
|
||||
[styles.devToolsActive]: this._isDevToolsOpen(),
|
||||
})}
|
||||
className={cx(styles.deviceContainer)}
|
||||
style={{
|
||||
width: deviceStyles.width,
|
||||
transform: `scale(${zoomLevel})`,
|
||||
|
|
|
@ -40,11 +40,6 @@
|
|||
position: relative;
|
||||
display: inline-flex;
|
||||
transform-origin: top left;
|
||||
border: 3px solid #687cee00;
|
||||
}
|
||||
|
||||
.devToolsActive {
|
||||
border: 3px solid #6075ef;
|
||||
}
|
||||
|
||||
.device {
|
||||
|
|
Loading…
Reference in a new issue