Skip to content

Commit

Permalink
fix: cell spacing in run, html export (#1898)
Browse files Browse the repository at this point in the history
* fix: cell spacing in run, html export

The vertical layout was missing spacing when code was shown.

* only wrap cells in div when needed
  • Loading branch information
akshayka authored Jul 27, 2024
1 parent a06c109 commit a91333c
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ const VerticalLayoutRenderer: React.FC<VerticalLayoutProps> = ({

const canShowCode = evaluateCanShowCode();

return (
<VerticalLayoutWrapper invisible={invisible} appConfig={appConfig}>
const verticalCells = (
<>
{cells.map((cell) => (
<VerticalCell
key={cell.id}
Expand All @@ -96,6 +96,16 @@ const VerticalLayoutRenderer: React.FC<VerticalLayoutProps> = ({
kiosk={kioskMode}
/>
))}
</>
);

return (
<VerticalLayoutWrapper invisible={invisible} appConfig={appConfig}>
{showCode ? (
<div className="flex flex-col gap-5"> {verticalCells}</div>
) : (
verticalCells
)}
{mode === "read" && (
<ActionButtons
canShowCode={canShowCode}
Expand Down

0 comments on commit a91333c

Please sign in to comment.