Skip to content

Commit 7e47150

Browse files
authored
fix: overflow issue in embed modal (#241)
1 parent 5c51172 commit 7e47150

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Embed.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ function Embed({ dirty, gistId, gistVersion }) {
6464
</TabButton>
6565
</div>
6666

67-
<div className="bg-gray-200 px-4 pb-4 -mx-4">
67+
{/* overflow-hidden is required hide the hidden preview panel */}
68+
<div className="bg-gray-200 px-4 pb-4 -mx-4 overflow-hidden">
6869
<div className="px-4 gap-4 grid grid-flow-col py-1">
6970
{panes.map((selected, idx) => (
7071
<div key={idx} className="flex items-center justify-between">

0 commit comments

Comments
 (0)