diff --git a/assets/scss/_styles_project.scss b/assets/scss/_styles_project.scss index 61f7b7c54..c99160ff6 100644 --- a/assets/scss/_styles_project.scss +++ b/assets/scss/_styles_project.scss @@ -122,6 +122,20 @@ body { border: 0; } } + + img, + .md__image img, + img.md-image-responsive { + display: block; + width: 100%; + max-width: clamp(320px, 100%, 700px); + height: auto; + margin: 0 auto; + object-fit: contain; + box-sizing: border-box; + } + + overflow-x: hidden; } // Links @@ -166,7 +180,6 @@ a:not([href]):not([class]):hover { text-decoration: none; transition: color 0.2s; clip-path: polygon(100% 0, 100% 100%, 0.8em 100%, 0 50%, 0.8em 0); - clip-path: polygon(100% 0, 100% 100%, 0.8em 100%, 0 50%, 0.8em 0); &:hover { @@ -456,67 +469,33 @@ a:not([href]):not([class]):hover { } } -figure, -figure[style*="width"] { - width: max-content !important; - max-width: 70% !important; +.td-content figure, +.td-content figure { + width: max-content; + max-width: clamp(320px, 100%, 700px); margin: 0 auto 2rem auto; - + box-sizing: border-box; display: flex; flex-direction: column; align-items: center; - - > img { - width: auto !important; - max-width: 100% !important; - height: auto; - object-fit: contain !important; - display: block; - margin: 0 auto; - border-radius: .5rem .5rem 0rem 0rem !important; - box-shadow: 0 0 0.5rem rgba(0, 179, 159, 0.4) !important; - - &:hover { - cursor: pointer; - } - } - - > figcaption { - width: 100% !important; - text-align: center; - padding: 0.5rem 1rem; - background-color: rgba($lightslategray, 1); - color: $dark; - border-radius: 0 0 .5rem .5rem; - box-sizing: border-box; - } } -// Mobile: override for full-width content alignment -@media (max-width: 600px) { - figure, - figure[style*="width"] { - max-width: 100% !important; - box-sizing: border-box; - } -} - -.md__image img, -img.md-image-responsive { +.td-content figure > img { width: auto; - max-width: 70%; - max-height: 80vh; - height: auto; - display: block; - margin: 0 auto; - object-fit: contain; + max-width: 100%; + border-radius: .5rem .5rem 0 0; + box-shadow: 0 0 0.5rem rgba(0, 179, 159, 0.4); + transition: box-shadow 0.2s; +} - @media (max-width: 600px) { - width: auto; - max-width: 100%; - padding: 0 1rem; - box-sizing: border-box; - } +.td-content figure > figcaption { + width: 100%; + text-align: center; + padding: 0.5rem 1rem; + background-color: rgba($lightslategray, 1); + color: $dark; + border-radius: 0 0 .5rem .5rem; + box-sizing: border-box; } .dashboard { diff --git a/content/en/kanvas/advanced/performance/index.md b/content/en/kanvas/advanced/performance/index.md index 3537c88f8..c00251975 100644 --- a/content/en/kanvas/advanced/performance/index.md +++ b/content/en/kanvas/advanced/performance/index.md @@ -47,7 +47,7 @@ Kanvas supports up to 1,000 relationships per design. Exceeding this limit can i Tags are indexed and searchable. However, the performance of design operations may degrade as the number of tags increases. To ensure an optimal user experience, we recommend using tags judiciously and limiting the number of tags used in a design. -Upon loading a design exceeds that exceeds 20 tags within a single design, Kanvas will automatically disable grouping by tags. You can manually enable grouping by tags by clicking the “Group Components” button in the Designer dock. For more information, see [Working with Tags](/kanvas/designer/tagsets/). +Upon loading a design exceeds that exceeds 20 tags within a single design, Kanvas will automatically disable grouping by tags. You can manually enable grouping by tags by clicking the "Group Components" button in the Designer dock. For more information, see [Working with Tags](/kanvas/designer/tagsets/).