Skip to content

Commit 4d80edc

Browse files
authored
fix: consistent avatar sizes on member page (#463)
1 parent 43c50a6 commit 4d80edc

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.vitepress/theme/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
import "virtual:group-icons.css";
12
import type { Theme } from "vitepress";
23
import DefaultTheme from "vitepress/theme";
34
import { defineAsyncComponent, h } from "vue";
45
import Alert from "./components/Alert.vue";
56
import AppBadgeList from "./components/AppBadgeList.vue";
67
import AppBlogPostHeader from "./components/AppBlogPostHeader.vue";
7-
import "virtual:group-icons.css";
8+
import "./overrides.css";
89

910
export default {
1011
extends: DefaultTheme,

.vitepress/theme/overrides.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.VPTeamMembersItem {
2+
--member-item-avatar-size-small: 64px;
3+
--member-item-avatar-size-medium: 96px;
4+
5+
.avatar-img {
6+
object-fit: fill;
7+
}
8+
9+
&.small {
10+
.avatar-img {
11+
width: var(--member-item-avatar-size-small);
12+
height: var(--member-item-avatar-size-small);
13+
}
14+
}
15+
16+
&.medium {
17+
.avatar-img {
18+
width: var(--member-item-avatar-size-medium);
19+
height: var(--member-item-avatar-size-medium);
20+
}
21+
}
22+
}
23+

0 commit comments

Comments
 (0)