Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
dd3699b5
Commit
dd3699b5
authored
Mar 14, 2020
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: sidebar overlay bug on smaller screens
parent
d4db1844
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
6 deletions
+30
-6
page.vue
client/themes/default/components/page.vue
+30
-6
No files found.
client/themes/default/components/page.vue
View file @
dd3699b5
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
app
app
clipped
clipped
mobile-break-point='600'
mobile-break-point='600'
:temporary='$vuetify.breakpoint.
md
AndDown'
:temporary='$vuetify.breakpoint.
sm
AndDown'
v-model='navShown'
v-model='navShown'
:right='$vuetify.rtl'
:right='$vuetify.rtl'
)
)
...
@@ -225,11 +225,11 @@
...
@@ -225,11 +225,11 @@
:right='$vuetify.rtl'
:right='$vuetify.rtl'
:left='!$vuetify.rtl'
:left='!$vuetify.rtl'
small
small
depressed
:depressed='this.$vuetify.breakpoint.mdAndUp'
@click='$vuetify.goTo(0, scrollOpts)'
@click='$vuetify.goTo(0, scrollOpts)'
color='primary'
color='primary'
dark
dark
:style='
$vuetify.rtl ? `right: 235px;` : `left: 235px;`
'
:style='
upBtnPosition
'
)
)
v-icon mdi-arrow-up
v-icon mdi-arrow-up
</
template
>
</
template
>
...
@@ -362,7 +362,8 @@ export default {
...
@@ -362,7 +362,8 @@ export default {
background
:
'#64B5F6'
background
:
'#64B5F6'
}
}
}
}
}
},
winWidth
:
0
}
}
},
},
computed
:
{
computed
:
{
...
@@ -385,7 +386,14 @@ export default {
...
@@ -385,7 +386,14 @@ export default {
return
result
return
result
},
[]))
},
[]))
},
},
pageUrl
()
{
return
window
.
location
.
href
}
pageUrl
()
{
return
window
.
location
.
href
},
upBtnPosition
()
{
if
(
this
.
$vuetify
.
breakpoint
.
mdAndUp
)
{
return
this
.
$vuetify
.
rtl
?
`right: 235px;`
:
`left: 235px;`
}
else
{
return
this
.
$vuetify
.
rtl
?
`right: 65px;`
:
`left: 65px;`
}
}
},
},
created
()
{
created
()
{
this
.
$store
.
commit
(
'page/SET_AUTHOR_ID'
,
this
.
authorId
)
this
.
$store
.
commit
(
'page/SET_AUTHOR_ID'
,
this
.
authorId
)
...
@@ -403,9 +411,16 @@ export default {
...
@@ -403,9 +411,16 @@ export default {
this
.
$store
.
commit
(
'page/SET_MODE'
,
'view'
)
this
.
$store
.
commit
(
'page/SET_MODE'
,
'view'
)
},
},
mounted
()
{
mounted
()
{
// -> Check side navigation visibility
this
.
handleSideNavVisibility
()
window
.
addEventListener
(
'resize'
,
_
.
debounce
(()
=>
{
this
.
handleSideNavVisibility
()
},
500
))
// -> Highlight Code Blocks
Prism
.
highlightAllUnder
(
this
.
$refs
.
container
)
Prism
.
highlightAllUnder
(
this
.
$refs
.
container
)
this
.
navShown
=
this
.
$vuetify
.
breakpoint
.
smAndUp
// -> Handle anchor scrolling
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
if
(
window
.
location
.
hash
&&
window
.
location
.
hash
.
length
>
1
)
{
if
(
window
.
location
.
hash
&&
window
.
location
.
hash
.
length
>
1
)
{
this
.
$vuetify
.
goTo
(
window
.
location
.
hash
,
this
.
scrollOpts
)
this
.
$vuetify
.
goTo
(
window
.
location
.
hash
,
this
.
scrollOpts
)
...
@@ -448,6 +463,15 @@ export default {
...
@@ -448,6 +463,15 @@ export default {
},
},
pageDelete
()
{
pageDelete
()
{
this
.
$root
.
$emit
(
'pageDelete'
)
this
.
$root
.
$emit
(
'pageDelete'
)
},
handleSideNavVisibility
()
{
if
(
window
.
innerWidth
===
this
.
winWidth
)
{
return
}
this
.
winWidth
=
window
.
innerWidth
if
(
this
.
$vuetify
.
breakpoint
.
mdAndUp
)
{
this
.
navShown
=
true
}
else
{
this
.
navShown
=
false
}
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment