Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

portico_svgs: Correct CSS for SVGs with height and width attributes.

Karl Stolleyf3071a47a43f
diff --git a/web/styles/portico/legacy_landing_page.css b/web/styles/portico/legacy_landing_page.css
index 4d29f624383..43c4f7fb340 100644
--- a/web/styles/portico/legacy_landing_page.css
+++ b/web/styles/portico/legacy_landing_page.css
@@ -2711,7 +2711,19 @@ button {
}
.feature-icon img {
+ /* Once Bootstrap is removed, we'll need to keep these
+ images displaying as blocks, so that control over
+ their height and width remains possible. */
+ display: block;
width: 100%;
+ /* This is roughly the visual value of the features
+ SVGs in use, prior to their having proper height
+ and width attributes. Given their placement in
+ the layout, we're generally more concerned about
+ keeping their height sensible, rather than their
+ width, though the 100% width value maintains the
+ correct aspect ratio. */
+ max-height: 300px;
}
}