Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit ced9ce5

Browse files
committed
chore(preview): use original previewer when win-width < 1920
1 parent 1e02225 commit ced9ce5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

containers/Preview/store.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ const PreviewStore = t
9898
return stripMobx(self.attUser)
9999
},
100100
get modalVisible() {
101-
return self.visible && Global.innerWidth > cs.mediaBreakPoints.desktop
101+
return self.visible && Global.innerWidth > cs.mediaBreakPoints.desktopL
102102
},
103103

104104
get slideVisible() {
105-
return self.visible && Global.innerWidth < cs.mediaBreakPoints.desktop
105+
return self.visible && Global.innerWidth <= cs.mediaBreakPoints.desktopL
106106
},
107107
}))
108108
.actions(self => ({

utils/common_styles.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ export const mediaBreakPoints = {
102102
tablet: 768,
103103
laptop: 992,
104104
desktop: 1600,
105+
// currently used as forms of preview content (slideout/modal)
106+
desktopL: 1920,
105107
// laptopL: '1440px',
106108
// desktop: '2560px'
107109
}

0 commit comments

Comments
 (0)