Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gordlin committed Jan 28, 2025
1 parent 7f3aaa2 commit 020bd23
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
7 changes: 1 addition & 6 deletions src/app.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<template>
<div
id="app"
class="storyramp-app bg-white"
>
<div id="app" class="storyramp-app bg-white">
<router-view :key="$route.path"></router-view>
</div>
</template>
Expand All @@ -14,8 +11,6 @@ import { useUserStore } from './stores/userStore';
import { useLockStore } from './stores/lockStore';
export default class App extends Vue {
currentPath = window.location.href;
@Watch('$route', { immediate: true })
onRouteUpdate(to: RouteLocationNormalized): void {
this.$i18n.locale = (to.params.lang as string) ?? 'en';
Expand Down
16 changes: 10 additions & 6 deletions src/components/editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- Should prevent stuff in the background from being scrolled or interacted with. Click it to close the sidebar -->
<div id="overlay" class="overlay" @click="closeSidebar"></div>
<!-- Header bar -->
<div class="sticky top-0" style="z-index: 999">
<div class="sticky top-0">
<div class="editor-header-upper sticky top-0 bg-white border-b border-black max-h-full">
<div class="flex flex-row justify-between items-center px-3 py-0.5 md:py-0">
<div class="flex flex-row items-center gap-2">
Expand Down Expand Up @@ -427,7 +427,7 @@
</div>

<!-- Body content -->
<div class="editor-body flex" style="z-index: 1">
<div class="editor-body flex">
<!-- Left side -->
<!-- Sidebar, desktop version -->
<div id="sidebar-desktop" class="w-80 flex flex-col flex-shrink-0 border-r border-black editor-toc hidden">
Expand Down Expand Up @@ -869,12 +869,12 @@ select:focus {
.editor-header-upper {
grid-area: 'header-upper';
z-index: 1000;
z-index: 150;
}
.editor-header {
grid-area: header;
z-index: 999;
z-index: 150;
}
.editor-body {
Expand Down Expand Up @@ -984,7 +984,7 @@ select:focus {
}
#sidebar-mobile {
z-index: 2001; // should be on top
z-index: 201; // should be on top
height: 100%;
width: 0; /* Initial width is 0 to be hidden */
max-width: 100%;
Expand All @@ -996,14 +996,18 @@ select:focus {
background-color: white;
}
#sidebar-desktop {
z-index: 201;
}
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5); /* Translucent black */
z-index: 2000; /* Ensure it appears just under the sidebar */
z-index: 199; /* Ensure it appears just under the sidebar */
display: none; /* Initially hidden */
}
Expand Down

0 comments on commit 020bd23

Please sign in to comment.