Skip to content

Commit d828b59

Browse files
Fix image widths, maintain responsiveness (#708)
This allows toolkit images to shrink below their set widths preventing the reference tab layout issue referenced below. Closes #707
1 parent 2573366 commit d828b59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/documentation-styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: MIT
55
*/
66
export const docStyles = {
7-
"p,img": {
7+
"p,h3": {
88
maxWidth: "600px",
99
},
1010
};

src/documentation/ideas/IdeasDocumentation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const ActiveLevel = ({
101101
.fit("max")
102102
.url()}
103103
alt=""
104-
width="100%"
104+
width={600}
105105
sx={{
106106
aspectRatio: getAspectRatio(activeIdea.image.asset._ref),
107107
}}

0 commit comments

Comments
 (0)