From 75c3dd53c602a915dce678af5803a41dfedaea3f Mon Sep 17 00:00:00 2001 From: charlie Date: Sat, 11 Jun 2022 13:26:32 +0800 Subject: [PATCH] enhance(ui): hide code lang flag when narrow screen size --- src/main/frontend/extensions/code.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/frontend/extensions/code.css b/src/main/frontend/extensions/code.css index f9457fd511..984cae6a81 100644 --- a/src/main/frontend/extensions/code.css +++ b/src/main/frontend/extensions/code.css @@ -14,11 +14,11 @@ width: fit-content; /* height:2rem; */ order: 3; - display: flex; left: auto; right: 0; /* margin-top: 4px; */ z-index: 9999; + display: none; } &-calc { @@ -33,6 +33,12 @@ font-family: Fira Code, Monaco, Menlo, Consolas, 'COURIER NEW', monospace; } } + + @screen md { + &-lang { + display: flex; + } + } } .CodeMirror {