Skip to content

Commit

Permalink
fix(cell): set minimum height for code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
bsahitya committed Jul 8, 2024
1 parent d7c34ed commit 12771d3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions libs/components/src/cell/cell.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ cv-code-snippet {
background-color: var(--cv-theme-surface-container-high);
border-radius: 0;
box-sizing: border-box;
min-height: 21px;
padding: 0 0.25rem;
}

Expand Down
17 changes: 13 additions & 4 deletions libs/components/src/cell/cell.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,25 @@ export default {
code: '',
index: 0,
language: 'markdown',
selected: false,
selected: true,
showEditor: true,
timesExecuted: 2,
},
};

const Template = ({ code, index, language, selected, timesExecuted }) => {
const Template = ({
code,
index,
language,
selected,
showEditor,
timesExecuted,
}) => {
return `<div style="width: 800px; ">
<cv-cell code="${code}" index="${index}" language="${language}" timesExecuted="${timesExecuted}" ${
selected ? 'selected' : ''
}></cv-cell>
showEditor ? 'showEditor' : ''
} ${selected ? 'selected' : ''}
></cv-cell>
</div>`;
};

Expand Down

0 comments on commit 12771d3

Please sign in to comment.