aboutsummaryrefslogtreecommitdiff
path: root/src/App.vue
diff options
context:
space:
mode:
authorShpuld Shpuldson <shpuld@gmail.com>2017-04-13 16:17:57 +0300
committerShpuld Shpuldson <shpuld@gmail.com>2017-04-13 16:17:57 +0300
commit83205b8c0e317d63c9cef86ede6a84a69021f4e2 (patch)
tree8107ed5007f7d4514aee925e5d6b96beed6a3620 /src/App.vue
parent446de1c623020cb0687bf2dd868b39be5267ef1d (diff)
Make sidepanel scroll independently from timeline, allows for seeing notifications and posting new statuses even when scrolled deep down.
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/App.vue b/src/App.vue
index c4b3cb13..fcfdae97 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -15,10 +15,14 @@
<button @click="activatePanel('sidebar')">Sidebar</button>
<button @click="activatePanel('timeline')">Timeline</button>
</div>
- <div class="sidebar" :class="{ 'mobile-hidden': mobileActivePanel != 'sidebar' }">
- <user-panel></user-panel>
- <nav-panel></nav-panel>
- <notifications v-if="currentUser"></notifications>
+ <div class="sidebar-flexer" :class="{ 'mobile-hidden': mobileActivePanel != 'sidebar'}">
+ <div class="sidebar" :class="{ 'mobile-hidden': mobileActivePanel != 'sidebar' }">
+ <div class="sidebar-container">
+ <user-panel></user-panel>
+ <nav-panel></nav-panel>
+ <notifications v-if="currentUser"></notifications>
+ </div>
+ </div>
</div>
<div class="main" :class="{ 'mobile-hidden': mobileActivePanel != 'timeline' }">
<transition name="fade">