fix: editor width on mobile page

This commit is contained in:
zsakvo 2023-04-09 22:35:43 +08:00
parent 009daa442f
commit 5c3b904ba5
1 changed files with 3 additions and 1 deletions

View File

@ -88,7 +88,9 @@ export const Editor: React.FC<{
return useMemo(
() => (
<CodeMirror
className={`h-full ${isMobileLayout ? "" : "border-r w-1/2 px-5"}`}
className={`h-full ${
isMobileLayout ? "w-full" : "border-r w-1/2 px-5"
}`}
value={value}
extensions={extensions}
onCreateEditor={onCreateEditor}