Skip to content

Commit

Permalink
Merge pull request #220 from KevinBatdorf/add-tab-size-to-preview
Browse files Browse the repository at this point in the history
Add tabsize to theme preview
  • Loading branch information
KevinBatdorf authored Jul 30, 2023
2 parents e2df897 + 71bc44d commit 455cc7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/editor/components/ThemeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type ThemeSelectProps = {
fontFamily: string;
search: string;
clampFonts: boolean;
tabSize: number;
onClick: (slug: Theme) => void;
};
export const ThemeSelect = (props: ThemeSelectProps) => {
Expand All @@ -37,7 +38,9 @@ export const ThemeSelect = (props: ThemeSelectProps) => {
const priorityThemes = getPriorityThemes();

return (
<div className="code-block-pro-editor">
<div
className="code-block-pro-editor"
style={{ tabSize: props.tabSize }}>
{props.search?.length > 0 ? (
<BaseControl id="add-on-themes">
{priorityThemes?.length > 0 ? null : (
Expand Down

0 comments on commit 455cc7d

Please sign in to comment.