Skip to content

Commit

Permalink
fix: Modrinth page overload width
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Oct 27, 2023
1 parent d74dff1 commit 7fbf8af
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion xmcl-keystone-ui/src/assets/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@ a {
padding: 14px;
}

.markdown-body img, .markdown-body video {
.markdown-body img,
.markdown-body video {
display: inline;
}

Expand All @@ -420,6 +421,15 @@ a {
vertical-align: middle;
}


.markdown-body iframe,
.markdown-body video {
aspect-ratio: 16/9;
height: auto;
width: 100%;
}


/* Curseforge */

.project-description {
Expand Down
2 changes: 1 addition & 1 deletion xmcl-keystone-ui/src/views/ModrinthProject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
</div>

<div
class="relative flex flex-grow flex-col gap-4"
class="relative flex flex-grow flex-col gap-4 overflow-auto"
>
<ModrinthProjectUpstream
v-if="_upstream && _upstream.upstream && (_upstream.upstream.type === 'modrinth-modpack')"
Expand Down

0 comments on commit 7fbf8af

Please sign in to comment.