-
-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replacing the contents of the news section with TARDIS twitter feed #1555
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1555 +/- ##
==========================================
- Coverage 67.20% 67.20% -0.01%
==========================================
Files 73 73
Lines 6147 6150 +3
==========================================
+ Hits 4131 4133 +2
- Misses 2016 2017 +1
Continue to review full report at Codecov.
|
The link persists for me. This happens in incognito mode, if I refresh the page, if I clear the page cache, and if I disable plugins. Works for me in MS Edge The bug happens in Firefox 88.0 Windows 10 |
Ah, I'm sorry, I got it now. I was able to reproduce it in incognito mode in Firefox. It seems Firefox blocks some of the resources that are required to produce the widget.
|
Yes, works for me. Unfortunate, but I'm not sure there's anything we can do about it? |
How about displaying a message saying something like "you need to disable tracking protection to see the widget"? I am not sure how that can be done at the moment, though. This might be useful to us: |
@andrewfullard I wrote some code to check if the widget is not loaded. If it detects this, it shows a message: Please check it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an excellent addition. Thank you for doing the extra effort to customize the styles and for handling the JS-disabled issue.
Once you address my comments, it's ready to be merged.
docs/news.rst
Outdated
jQuery('.twitter-block').find('.twitter-timeline').contents().find('.timeline-Header-title.u-inlineBlock').children().css('font-size', '18px'); | ||
jQuery('.twitter-block').find('.twitter-timeline').contents().find('.timeline-Tweet-text').css({ | ||
'font-size': '16px', | ||
'font': 'Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be 'font-family': 'Lato,proxima-nova,Helvetica Neue,Arial,sans-serif',
instead - that's why fonts didn't appear to be changed.
Thank you for reviewing it! I will get it done as soon as possible. |
@jaladh-singhal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for changing jquery to vanilla JS - there's one small thing I've commented.
Also, I'm not able to see doc preview - link shows 404, can you build the docs by pushing your commit prefixed with [build docs]
?
docs/news.rst
Outdated
var index; | ||
for (let index = 0; index < tweetTextList.length; index++) { | ||
tweetTextList[index].style.fontSize = "16px"; | ||
tweetTextList[index].style.font = "Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most probably it won't work - have you checked the font being used by web inspector on built webpage?
You should instead do this (read here]:
tweetTextList[index].style.font = "Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;"; | |
tweetTextList[index].style.fontFamily = "Lato, proxima-nova, Helvetica Neue, Arial, sans-serif"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, my bad, I fixed it now. Thanks again!
Could you please check this link to view the documentation?
@atharva-2001 the font type gets changed - thanks! But there are 2 scrollbars in right on embedded twitter feed - I'm not sure why the outermost container has the scrollbar now, it wasn't there earlier. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atharva-2001 the font type gets changed - thanks! But there are 2 scrollbars in right on embedded twitter feed - I'm not sure why the outermost container has the scrollbar now, it wasn't there earlier.
There's this one last thing (I know it has stretched alot, I always point out something!) :)
I'm sorry for getting it done so late, my bad I couldn't see the two scrollbars problem |
…ardis-sn#1555) * Replacing the contents of the news section with TARDIS twitter feed * add css link * removing two scrollbars * [build docs]
Fixes #1545
Description
Motivation and context
Fixes #1545
See also: #1743
How has this been tested?
This is working correctly in my documentation.
Examples
Before:
After:
Displays a message it not loaded:
Type of change
Checklist