Skip to content

Commit 376f7e3

Browse files
committed
fixes
1 parent afaeb70 commit 376f7e3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

docs/components/repository/ModuleItem.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const getLastUpdated = () => {
2929
<VPLink decoration="none" :href="'repository/' + params.name + '/' + module.id">
3030
<div :class="$style.feature">
3131
<article>
32-
<img v-if="module.cover" :style="{ borderRadius: '12px 12px 0px 0px' }" :src="module.cover" />
32+
<img v-if="module.cover" :class="$style.moduleCover" :src="module.cover" />
3333
<article :class="$style.box">
3434
<h2 :class="$style.title" :id="module.id">{{ module.name }}</h2>
3535
<span :class="$style.author">{{ module.version }} ({{ module.versionCode }}) by {{ module.author }}</span>
@@ -135,6 +135,13 @@ const getLastUpdated = () => {
135135
color: var(--vp-c-text-2);
136136
}
137137
138+
.moduleCover {
139+
border-radius: 12px 12px 0px 0px;
140+
width: 100%;
141+
height: 100%;
142+
aspect-ratio: 2.048;
143+
}
144+
138145
.moduleMeta {
139146
align-items: center;
140147
align-self: end;

docs/components/repository/RepoHeader.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ defineProps(["repo"]);
3232
width: 100%;
3333
margin-bottom: 16px;
3434
border-radius: 16px;
35+
aspect-ratio: 2.048;
3536
}
3637
3738
.repoTitle {

0 commit comments

Comments
 (0)