File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
docs/components/repository Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments