Skip to content

Commit

Permalink
fix: improve bg-color dark mode in iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
luizchaves committed Oct 23, 2024
1 parent 7e63029 commit bd9f3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/HtmlPreview.astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const codeName = src?.split('/')?.at(-2);
}
</div>

<div class={`code-preview overflow-hidden !m-0 ${showDarkMode ? 'bg-[#0d1117]' : '!bg-white'}`}>
<div class={`code-preview overflow-hidden !m-0 ${showDarkMode === true && 'bg-[#0d1117]'} ${showDarkMode === false && '!bg-white'}`}>
{
src && isShowIframe ? (
<Iframe
Expand Down

0 comments on commit bd9f3ea

Please sign in to comment.