From 5fcac1b8d100fc62d799665cf6d6b26c81dcb0e1 Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Sun, 27 May 2018 17:29:42 +0800 Subject: [PATCH] fix: active side arrow not middle align (#508). --- lib/default-theme/DropdownLink.vue | 2 +- lib/default-theme/Sidebar.vue | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/default-theme/DropdownLink.vue b/lib/default-theme/DropdownLink.vue index 3f771ada1a..7c8efb4e13 100644 --- a/lib/default-theme/DropdownLink.vue +++ b/lib/default-theme/DropdownLink.vue @@ -95,7 +95,7 @@ export default { border-top 3px solid transparent border-bottom 3px solid transparent position absolute - top calc(1rem - 2px) + top calc(50% - 2px) left 9px &:first-child h4 margin-top 0 diff --git a/lib/default-theme/Sidebar.vue b/lib/default-theme/Sidebar.vue index d7831690f0..61e52a0bf7 100644 --- a/lib/default-theme/Sidebar.vue +++ b/lib/default-theme/Sidebar.vue @@ -97,6 +97,8 @@ function resolveOpenGroupIndex (route, items) { .sidebar .nav-links display block + .dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active::after + top calc(1rem - 2px) .sidebar-links padding 1rem 0