Skip to content

Commit

Permalink
Use AppSidebar
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
  • Loading branch information
raimund-schluessler committed May 15, 2020
1 parent a505714 commit c6c742b
Show file tree
Hide file tree
Showing 3 changed files with 356 additions and 348 deletions.
7 changes: 3 additions & 4 deletions css/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -711,10 +711,9 @@ $blue_due: #4271a6; // due dates and low importance
}

/**
* rules for app-sidebar
*/

#app-sidebar {
* rules for app-sidebar
*/
.app-sidebar {
.flex-container {
display: flex;
flex-direction: column;
Expand Down
6 changes: 2 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
<RouterView />
</AppContent>

<div id="app-sidebar" :class="{disappear: $route.params.taskId === undefined}">
<RouterView name="details" />
</div>
<RouterView name="details" :class="{disappear: $route.params.taskId === undefined}" />
</Content>
</template>

Expand Down Expand Up @@ -115,7 +113,7 @@ export default {
if (!($event.target.closest('.reactive') || $event.target.classList.contains('reactive')
|| $event.target.classList.contains('mx-btn') // For some reason the click-outside handlers fire for the datepicker month and year buttons!?
)
&& !$event.target.closest('#app-sidebar') && this.$route.params.taskId) {
&& !$event.target.closest('.app-sidebar') && this.$route.params.taskId) {
if (this.$route.params.calendarId) {
this.$router.push({ name: 'calendars', params: { calendarId: this.$route.params.calendarId } })
} else {
Expand Down
Loading

0 comments on commit c6c742b

Please sign in to comment.