fix: editor width on mobile page
This commit is contained in:
parent
009daa442f
commit
5c3b904ba5
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue