Skip to content

Commit 6218b10

Browse files
authored
fix(theme): show external link icon on same line (#1880)
1 parent b56351c commit 6218b10

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/client/theme-default/components/VPLink.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ const isExternal = computed(() => props.href && EXTERNAL_URL_RE.test(props.href)
3737
height: 11px;
3838
fill: var(--vp-c-text-3);
3939
transition: fill 0.25s;
40+
flex-shrink: 0;
4041
}
4142
</style>

src/client/theme-default/components/VPSidebarItem.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ function onCaretClick() {
113113
}
114114
115115
.link {
116-
display: block;
116+
display: flex;
117+
align-items: center;
117118
flex-grow: 1;
118119
}
119120

0 commit comments

Comments
 (0)