From 50fc7413a9ed87c23faca4a00bbb68a8474c460e Mon Sep 17 00:00:00 2001 From: ccbikai Date: Fri, 9 Aug 2024 12:03:02 +0800 Subject: [PATCH] feat: enhance UI and fix video handling - Hide video elements in widget for improved user experience - Update header background for better contrast - Prevent empty image containers from rendering - Remove unsupported video player elements - Add onclick attribute to links for enhanced functionality - Include Yandex.ru in target whitelist for expanded compatibility --- src/assets/item.css | 4 ++++ src/components/header.astro | 1 + src/lib/telegram/index.js | 5 +++-- src/pages/static/[...url].js | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/assets/item.css b/src/assets/item.css index 89f4fd54..d167a564 100644 --- a/src/assets/item.css +++ b/src/assets/item.css @@ -118,6 +118,10 @@ display: block !important; } + .tgme_widget_message_video_wrap { + display: none; + } + .tgme_widget_message_poll_options { display: block; diff --git a/src/components/header.astro b/src/components/header.astro index b8e3cc72..9ddb1d26 100644 --- a/src/components/header.astro +++ b/src/components/header.astro @@ -156,6 +156,7 @@ const staticProxy = getEnv(import.meta.env, Astro, 'STATIC_PROXY') ?? '/static/'