From 60e2db3f0d0afaec6eed8708001359125326a1a1 Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Tue, 5 Apr 2022 21:06:19 +0900
Subject: [PATCH] Fix align side menu icons
---
.../components/TimelineSpace/SideMenu.vue | 196 ++++++++++++++----
1 file changed, 151 insertions(+), 45 deletions(-)
diff --git a/src/renderer/components/TimelineSpace/SideMenu.vue b/src/renderer/components/TimelineSpace/SideMenu.vue
index dcc74f88..56253b7c 100644
--- a/src/renderer/components/TimelineSpace/SideMenu.vue
+++ b/src/renderer/components/TimelineSpace/SideMenu.vue
@@ -41,66 +41,148 @@
:class="collapse ? 'el-menu-vertical timeline-menu narrow-menu' : 'el-menu-vertical timeline-menu'"
role="menu"
>
-
-
- {{ $t('side_menu.home') }}
-
+
-
-
- {{ $t('side_menu.mention') }}
-
+
-
-
- {{ $t('side_menu.direct') }}
-
+
-
-
- {{ $t('side_menu.favourite') }}
+
-
-
- {{ $t('side_menu.bookmark') }}
+
-
-
- {{ $t('side_menu.local') }}
-
+
-
-
- {{ $t('side_menu.public') }}
-
+
-
-
- {{ $t('side_menu.search') }}
+
-
-
- {{ $t('side_menu.hashtag') }}
+
-
-
- {{ $t('side_menu.lists') }}
+
@@ -332,6 +428,16 @@ export default {
line-height: 32px;
font-size: 14px;
}
+
+ .menu-item {
+ display: flex;
+
+ .menu-item-icon {
+ text-align: center;
+ padding-right: 2px;
+ width: 18px;
+ }
+ }
}
.timeline-menu:hover /deep/ {