Skip to content

Commit

Permalink
sync: Updates from docusaurus-template
Browse files Browse the repository at this point in the history
  • Loading branch information
writedocs-integration committed Jan 8, 2025
1 parent 442fd15 commit 141bf8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "writedocs",
"version": "1.3.12",
"version": "1.3.13",
"private": false,
"preferGlobal": true,
"author": "WriteDocs",
Expand Down
4 changes: 2 additions & 2 deletions src/components/writedocsComponentsFolder/Media/Image.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import useBaseUrl from "@docusaurus/useBaseUrl";
import { useColorMode } from "@docusaurus/theme-common";
import "./media.css";

export default function Image({ src, srcDark, size, alt }) {
export default function Image({ src, srcDark, size, width, alt }) {
const { colorMode } = useColorMode();

const imageSrc = colorMode === "dark" && srcDark ? srcDark : src;
Expand All @@ -12,7 +12,7 @@ export default function Image({ src, srcDark, size, alt }) {
display: "flex",
justifyContent: "center",
alignItems: "center",
maxWidth: size || "100%",
maxWidth: size || width || "100%",
margin: "auto",
};

Expand Down

0 comments on commit 141bf8b

Please sign in to comment.