From 4ef750b206dd69793b4137acb9a450cbc578e7a0 Mon Sep 17 00:00:00 2001 From: Will Miao Date: Wed, 29 Oct 2025 16:06:08 +0800 Subject: [PATCH] feat: improve dropdown menu responsiveness Update dropdown menu CSS to use max-content and max() function for better responsive behavior. Replace fixed min-width with dynamic width calculation to ensure proper content fitting across different screen sizes while maintaining dropdown functionality. --- static/css/layout.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/css/layout.css b/static/css/layout.css index 91543848..95014ee6 100644 --- a/static/css/layout.css +++ b/static/css/layout.css @@ -356,7 +356,8 @@ left: 0; z-index: 1000; display: none; - min-width: 230px; + min-width: max(100%, max-content); + width: max-content; padding: 5px 0; margin: 2px 0 0; font-size: 0.85em;