Skip to content

Commit

Permalink
enhance(ui): hide code lang flag when narrow screen size
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 authored and tiensonqin committed Jun 13, 2022
1 parent f8c4f50 commit 75c3dd5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/frontend/extensions/code.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -33,6 +33,12 @@
font-family: Fira Code, Monaco, Menlo, Consolas, 'COURIER NEW', monospace;
}
}

@screen md {
&-lang {
display: flex;
}
}
}

.CodeMirror {
Expand Down

0 comments on commit 75c3dd5

Please sign in to comment.