Skip to content

Commit

Permalink
hide overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nanqic committed Jan 9, 2024
1 parent 79bf4b9 commit d611f61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/assets/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ li {
list-style-type: none;
}

div {
overflow: hidden;
}

.mm-toolbar>.mm-toolbar-item,
li,
select,
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Repl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ export default function Repl() {
return () => {
window.removeEventListener('orientationchange', handleOrientationChange);
};
}, [isVertical,content]);
}, [isVertical, content]);

return (
<div className="flex flex-row h-screen p-2">
<WanrMsg show={isVertical} msg={'请关闭竖屏锁定,横屏以获得更好的体验'} />
{showEdit && <TextEdit content={content} setContent={setContent} setEditing={setEditing} />}
<div className="w-full flex">
{content && <MarkmapHooks content={content} setShowEdit={setShowEdit} showEdit={showEdit} editing={editing} />}
<MarkmapHooks content={content} setShowEdit={setShowEdit} showEdit={showEdit} editing={editing} />
</div>
</div>
);
Expand Down

0 comments on commit d611f61

Please sign in to comment.