Skip to content

Commit

Permalink
Merge branch 'hotfix/2.31.1' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakeyzer committed Oct 25, 2024
2 parents c044cb5 + e321bf1 commit 0bbd9b5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.31.0",
"version": "2.31.1",
"name": "shieldmaiden",
"description": "A Dungeons and Dragons Combat Tracker",
"productName": "Shieldmaiden",
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div :class="{ hasSide: $route.meta.sidebar !== false || ($route.name === 'home' && user) }">
<Sidebar
v-if="
($route.name === 'home' && user) ||
(!small_screen && $route.name === 'home' && user) ||
(!small_screen && $route.meta.sidebar !== false) ||
$store.getters.side_small_screen
"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:class="{
'side-collapsed':
($store.getters.side_collapsed && !smallScreen && $route.meta.sidebar !== false) ||
($route.name === 'home' && $store.getters.side_collapsed && !smallScreen),
($store.getters.side_collapsed && !smallScreen && $route.name === 'home'),
slideIn: $route.meta.sidebar === false && $route.name !== 'home',
}"
>
Expand Down
15 changes: 9 additions & 6 deletions src/components/header/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@
<div
class="header d-flex justify-content-between items-center"
:class="{
'hidden-sidebar': $route.meta.sidebar === false,
'hidden-sidebar': $route.meta.sidebar === false && !$route.name !== 'home',
}"
>
<div class="d-flex items-center gap-1">
<div
v-if="$route.meta.sidebar === false && $route.name !== 'home'"
class="menu"
@click.stop="setSideSmallScreen(!$store.getters.side_small_screen)"
>
<div class="menu" @click.stop="setSideSmallScreen(!$store.getters.side_small_screen)">
<i
aria-hidden="true"
class="fas"
Expand Down Expand Up @@ -140,6 +136,9 @@ export default {
padding: 0 15px;
}
.logo {
position: absolute;
left: 5px;
top: 5px;
height: 40px;
transition: position 0.4s linear;
Expand Down Expand Up @@ -179,6 +178,10 @@ button.icon {
.header.hidden-sidebar {
position: relative;
.logo {
left: 45px;
}
}
@media only screen and (max-width: 575px) {
Expand Down

0 comments on commit 0bbd9b5

Please sign in to comment.