Skip to content

Commit

Permalink
fix: css
Browse files Browse the repository at this point in the history
  • Loading branch information
jirikuchta committed Apr 18, 2024
1 parent 4e90627 commit 025aabe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion static/less/popup.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}

.popup.detail-font-size {
padding: 8px 12px;
padding: 12px 16px;
h4 { margin-bottom: 8px; }
}

Expand Down
3 changes: 2 additions & 1 deletion static/ts/ui/detail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,16 +226,17 @@ class ArticleContent extends HTMLElement {
:host {
font-size: ${settings.getItem("detailFontSize")}px;
line-height: 1.5em;
box-sizing: border-box;
}
:host > * {
margin: 24px auto;
max-width: 100% !important;
&:first-child { margin-top: 0; }
}
iframe, video, figure, img {
display: block;
max-width: 100%;
height: auto !important;
margin-inline: auto;
}
Expand Down

0 comments on commit 025aabe

Please sign in to comment.