Skip to content

Commit

Permalink
feat:open sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
martincry committed Feb 2, 2022
1 parent c803c4b commit 178117f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
> It is perfect for writing novels, lyrics, poems, essays, drafts and screenplays.
[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-black.svg)](https://snapcraft.io/xiaomiquan)
[![安裝軟體敬請移駕 Snap Store](https://snapcraft.io/static/images/badges/tw/snap-store-black.svg)](https://snapcraft.io/xiaomiquan)

Writing a good story is one of the most challenging things in life, but for many it is a dream worth pursuing.

Expand Down
1 change: 1 addition & 0 deletions src/components/Header/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<Support show={showSupport} />
{#if !$isFullScreen}
<Header
persistentHamburgerMenu={true}
company={$_('header.company.title')}
style="-webkit-app-region: no-drag"
bind:isSideNavOpen={$isSideNavOpen}>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Sidebar/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import { push } from "svelte-spa-router";
import { SceneInterface } from "src/schema/scene/scene.interface";
import SceneContextMenu from "./component/SceneContextMenu.svelte";
import { isFullScreen } from "src/store";
import { isFullScreen,isSideNavOpen } from "src/store";
import { routerLinkFn } from "src/tools/router-link-fn";
import { ChapterInterface } from "src/schema/chapter/chapter.Interface";
import ChapterContextMenu from "./component/ChapterContextMenu.svelte";
Expand Down Expand Up @@ -155,7 +155,7 @@
bind:show={modals.editChapter.show}
bind:data={modals.editChapter.data} />
<EditScene bind:show={modals.editScene.show} {currentScene} />
<SideNav isOpen={true}>
<SideNav isOpen={$isSideNavOpen}>
<SideNavItems>
{#each filterChapters as chapter, chapterIndex}
<div class="rightChapterMenuElement"
Expand Down
4 changes: 2 additions & 2 deletions src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ min-height: auto; */
.name-tip {
background: red;
}
.ce-paragraph {
/* .ce-paragraph {
text-indent: 2em;
}
} */

0 comments on commit 178117f

Please sign in to comment.