From e43162aee4b7078ee1e57575b1e2161264e93273 Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Sun, 21 Oct 2018 22:15:52 +0900 Subject: [PATCH 1/2] Fix list and hashtag menu for narrow style --- .../components/TimelineSpace/SideMenu.vue | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/renderer/components/TimelineSpace/SideMenu.vue b/src/renderer/components/TimelineSpace/SideMenu.vue index 66bcb122..35aaae1f 100644 --- a/src/renderer/components/TimelineSpace/SideMenu.vue +++ b/src/renderer/components/TimelineSpace/SideMenu.vue @@ -36,52 +36,54 @@ :router="true" :class="collapse ? 'el-menu-vertical timeline-menu narrow-menu':'el-menu-vertical timeline-menu'" role="menu"> - + {{ $t("side_menu.home") }} - + {{ $t("side_menu.notification") }} - + {{ $t("side_menu.favourite") }} - + {{ $t("side_menu.local") }} - + {{ $t("side_menu.public") }} - + {{ $t("side_menu.search") }} - + {{ $t("side_menu.hashtag") }} - + {{ $t("side_menu.lists") }} From 49ad122fe508cea7adb32eb2c0d3342e856a1aa6 Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Mon, 22 Oct 2018 23:29:44 +0900 Subject: [PATCH 2/2] Fix menu-item space and notification badge for narrow style --- .../components/TimelineSpace/SideMenu.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/TimelineSpace/SideMenu.vue b/src/renderer/components/TimelineSpace/SideMenu.vue index 35aaae1f..5727b681 100644 --- a/src/renderer/components/TimelineSpace/SideMenu.vue +++ b/src/renderer/components/TimelineSpace/SideMenu.vue @@ -203,6 +203,7 @@ export default { .release-collapse { color: #dcdfe6; padding: 0; + margin-left: -10px; &:hover { color: #409eff; @@ -243,8 +244,18 @@ export default { } } - .narrow-menu { - width: 76px; + .narrow-menu /deep/ { + width: 64px; + + .el-menu-item { + margin-left: 4px; + } + + .el-badge { + vertical-align: top; + line-height: 32px; + margin-left: -8px; + } } }