Optimized UI components

This commit is contained in:
Liyas Thomas
2019-12-02 18:05:10 +05:30
parent c1a733af53
commit 0bfc0256a6
3 changed files with 12 additions and 2 deletions

View File

@@ -614,6 +614,7 @@ ol li {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
flex-grow: 1;
} }
.show-on-small-screen { .show-on-small-screen {

View File

@@ -122,7 +122,7 @@
/> />
</li> </li>
</div> </div>
<transition name="page" appear> <transition name="fade">
<div v-if="showMore" class="show-on-large-screen"> <div v-if="showMore" class="show-on-large-screen">
<li> <li>
<input <input
@@ -267,6 +267,15 @@
} }
} }
.fade-enter-active,
.fade-leave-active {
transition: all 0.2s;
}
.fade-enter,
.fade-leave-to {
opacity: 0;
}
.stared { .stared {
color: #f8e81c !important; color: #f8e81c !important;
} }

View File

@@ -560,7 +560,7 @@
</ul> </ul>
</pw-section> </pw-section>
</div> </div>
<div class="flex-wrap" style="display: flex; flex-grow: 1;"> <div class="flex-wrap">
<span></span> <span></span>
<button class="icon" @click="activeSidebar = !activeSidebar" v-tooltip="{ content: activeSidebar ? 'Hide Sidebar' : 'Show Sidebar' }"> <button class="icon" @click="activeSidebar = !activeSidebar" v-tooltip="{ content: activeSidebar ? 'Hide Sidebar' : 'Show Sidebar' }">
<i class="material-icons">{{activeSidebar ? 'chevron_right' : 'chevron_left'}}</i> <i class="material-icons">{{activeSidebar ? 'chevron_right' : 'chevron_left'}}</i>