From 0af70e1251cb3e2e53b355c32725099a33b01e27 Mon Sep 17 00:00:00 2001 From: ken Date: Tue, 11 Aug 2026 15:20:58 +0800 Subject: [PATCH] update --- assets/stylesheets/template/base/_global.scss | 19 ++++++++++--------- .../stylesheets/template/modules/video.scss | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/assets/stylesheets/template/base/_global.scss b/assets/stylesheets/template/base/_global.scss index 0f5e714..30c5c63 100644 --- a/assets/stylesheets/template/base/_global.scss +++ b/assets/stylesheets/template/base/_global.scss @@ -111,11 +111,16 @@ a:focus { } img { - width: 100%; - height: 100%; - object-fit: cover; + max-width: 100%; + height: auto; +} +.w-annc,.i-video_data,.w-video_data,.w-ba-banner,.widget-link,.i-member-pic-wrap,.i-annc__img-wrap{ + img{ + width: 100%; + height: 100%; + object-fit: cover; + } } - .admin-edit { clear: both; } @@ -199,11 +204,7 @@ a.btn-primary { } } } -img{ - width: 100%; - height: 100%; - object-fit: cover; -} + // Take care of exceeding content // body[data-module="page_content"], // body[data-module="announcement"] { diff --git a/assets/stylesheets/template/modules/video.scss b/assets/stylesheets/template/modules/video.scss index 6c8d132..93dc42a 100644 --- a/assets/stylesheets/template/modules/video.scss +++ b/assets/stylesheets/template/modules/video.scss @@ -808,7 +808,7 @@ border: 1px solid #6868688f; } .video_linkwrapper{ - padding: 0; + padding: 0.2em; border-radius: 0; position:relative; overflow:hidden;