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: Remove now-unnecessary twitter-tweet CSS and JS.

Alex Vandiver62015a0b482e
diff --git a/web/src/portico/landing-page.js b/web/src/portico/landing-page.js
index c593a0a548b..ff6d3d7eaf2 100644
--- a/web/src/portico/landing-page.js
+++ b/web/src/portico/landing-page.js
@@ -192,21 +192,6 @@ $(() => {
delete page_params.contributors;
render_tabs(contributors);
}
-
- // Source: https://stackoverflow.com/questions/819416/adjust-width-and-height-of-iframe-to-fit-with-content-in-it
- // Resize tweet to avoid overlapping with image. Since tweet uses an iframe which doesn't adjust with
- // screen resize, we need to manually adjust its width.
-
- function resize_iframe_to_fit_content(iFrame) {
- $(iFrame).width("38vw");
- }
-
- window.addEventListener("resize", () => {
- const iframes = document.querySelectorAll(".twitter-tweet iframe");
- for (const iframe of iframes) {
- resize_iframe_to_fit_content(iframe);
- }
- });
});
// Scroll to anchor link when clicked. Note that help.js has a similar
diff --git a/web/styles/portico/landing_page.css b/web/styles/portico/landing_page.css
index 5fce8ee04da..275522864f0 100644
--- a/web/styles/portico/landing_page.css
+++ b/web/styles/portico/landing_page.css
@@ -2650,10 +2650,6 @@ button {
.feature-text {
margin-bottom: 10px;
}
-
- .twitter-tweet {
- margin: 30px auto !important;
- }
}
@media (width >= 768px) {
@@ -2742,22 +2738,6 @@ button {
}
}
-.twitter-tweet {
- margin: auto;
-}
-
-blockquote.twitter-tweet {
- padding: 0 0 0 15px;
- border-left: 5px solid hsl(0deg 0% 93%);
-
- & p {
- margin-bottom: 0;
- font-size: 17.5px;
- font-weight: 300;
- line-height: 1.25;
- }
-}
-
.discounts-section {
text-align: center;