From 025aabe672c1f66cd7c18595c25298605386a472 Mon Sep 17 00:00:00 2001 From: Jiri Kuchta Date: Thu, 18 Apr 2024 10:10:36 +0200 Subject: [PATCH] fix: css --- static/less/popup.less | 2 +- static/ts/ui/detail.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/static/less/popup.less b/static/less/popup.less index a4b206e..f90514d 100644 --- a/static/less/popup.less +++ b/static/less/popup.less @@ -7,7 +7,7 @@ } .popup.detail-font-size { - padding: 8px 12px; + padding: 12px 16px; h4 { margin-bottom: 8px; } } diff --git a/static/ts/ui/detail.ts b/static/ts/ui/detail.ts index 601a51c..86e7a27 100644 --- a/static/ts/ui/detail.ts +++ b/static/ts/ui/detail.ts @@ -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; }