Skip to content

Commit e3f8a3d

Browse files
committed
tweak background
1 parent fe8aaac commit e3f8a3d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/theme/IdealImage/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ export default function IdealImage(
173173

174174
const containerStyles: React.CSSProperties = {
175175
position: "relative",
176-
...(background ? { backgroundColor: background } : {}),
176+
...(background
177+
? { backgroundColor: background == "white" ? "white" : "rgb(31 31 28)" }
178+
: {}),
177179
marginBottom: "16px",
178180
};
179181

src/theme/IdealImage/styles.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
}
1616

1717
.customWhiteZoom [data-rmiz-modal-img] {
18-
background-color: rgb(255, 255, 255) !important;
18+
background-color: rgb(31 31 28) !important;
1919
}

0 commit comments

Comments
 (0)