Skip to content

Commit d82cc8a

Browse files
committed
Update
Signed-off-by: Zihan Kuang <[email protected]>
1 parent 27a5bec commit d82cc8a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

assets/scss/_styles_project.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ body {
128128
img.md-image-responsive {
129129
display: block;
130130
width: 100%;
131-
max-width: clamp(320px, 80vw, 800px);
131+
max-width: clamp(320px, 100%, 800px);
132132
height: auto;
133133
margin: 0 auto;
134134
object-fit: contain;
@@ -470,9 +470,9 @@ a:not([href]):not([class]):hover {
470470
}
471471

472472
.td-content figure,
473-
.td-content figure[style*="width"] {
474-
width: 100%;
475-
max-width: clamp(320px, 80vw, 800px);
473+
.td-content figure {
474+
width: max-content;
475+
max-width: clamp(320px, 100%, 700px);
476476
margin: 0 auto 2rem auto;
477477
box-sizing: border-box;
478478
display: flex;
@@ -481,6 +481,7 @@ a:not([href]):not([class]):hover {
481481
}
482482

483483
.td-content figure > img {
484+
width: auto;
484485
max-width: 100%;
485486
border-radius: .5rem .5rem 0 0;
486487
box-shadow: 0 0 0.5rem rgba(0, 179, 159, 0.4);

content/en/kanvas/designer/comments/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ If you plan to keep certain comments in your design for documentation, team refe
173173

174174
<figure>
175175
<img src="./naming-comments.png" alt="Naming a comment in Designer" />
176+
<figcaption>Naming a comment in Designer</figcaption>
176177
</figure>
177178

178179
{{< alert type="info" title="Best Practice" >}}

0 commit comments

Comments
 (0)