3737 />
3838 </div >
3939 <div
40+ v-if =" !fixedWidth"
4041 class =" resize-handle"
4142 @mousedown.prevent =" startDrag"
4243 @touchstart.prevent =" startDrag"
@@ -113,6 +114,10 @@ export default {
113114 type: Boolean ,
114115 default: false ,
115116 },
117+ fixedWidth: {
118+ type: Number ,
119+ default: null ,
120+ },
116121 },
117122 data () {
118123 const windowWidth = window .innerWidth ;
@@ -131,7 +136,7 @@ export default {
131136 return {
132137 isDragging: false ,
133138 // limit the width to a range
134- width: Math .min (Math .max (storedWidth, minWidth), maxWidth),
139+ width: this . fixedWidth || Math .min (Math .max (storedWidth, minWidth), maxWidth),
135140 isTouch: false ,
136141 windowWidth,
137142 windowHeight,
@@ -146,10 +151,12 @@ export default {
146151 computed: {
147152 minWidthPercent : ({ breakpoint }) => minWidthResponsivePercents[breakpoint] || 0 ,
148153 maxWidthPercent : ({ breakpoint }) => maxWidthResponsivePercents[breakpoint] || 100 ,
149- maxWidth : ({ maxWidthPercent, windowWidth }) => (
150- calcWidthPercent (maxWidthPercent, windowWidth)
154+ maxWidth : ({ maxWidthPercent, windowWidth, fixedWidth }) => (
155+ Math .max (fixedWidth, calcWidthPercent (maxWidthPercent, windowWidth))
156+ ),
157+ minWidth : ({ minWidthPercent, windowWidth, fixedWidth }) => (
158+ Math .min (fixedWidth || windowWidth, calcWidthPercent (minWidthPercent, windowWidth))
151159 ),
152- minWidth : ({ minWidthPercent, windowWidth }) => calcWidthPercent (minWidthPercent, windowWidth),
153160 widthInPx : ({ width }) => ` ${ width} px` ,
154161 events : ({ isTouch }) => (isTouch ? eventsMap .touch : eventsMap .mouse ),
155162 asideStyles: ({
@@ -417,6 +424,7 @@ export default {
417424 position : fixed ;
418425 top : var (--top-offset-mobile );
419426 bottom : 0 ;
427+ left : 0 ;
420428 z-index : $nav-z-index + 1 ;
421429 transform : translateX (-100% );
422430 transition : transform 0.15s ease-in ;
0 commit comments