From e2e22c5dc77221bec5bf30c566ac04141f5e19a4 Mon Sep 17 00:00:00 2001 From: Arseniy <93079612+codedeliveryservice@users.noreply.github.com> Date: Tue, 12 Mar 2024 02:30:22 +0300 Subject: [PATCH] Adaptive title font size for mobile (#199) --- OpenBench/static/style.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenBench/static/style.css b/OpenBench/static/style.css index 307fd43..f7239c1 100644 --- a/OpenBench/static/style.css +++ b/OpenBench/static/style.css @@ -436,7 +436,8 @@ td pre { } #content-header h2 { - font-size: 1.4rem; + /* Adjust the font size to the screen width, ensuring that the title doesn't overflow */ + font-size: clamp(1.0rem, 4.8vw, 1.4rem); margin: 8px 0; }