-
Notifications
You must be signed in to change notification settings - Fork 521
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
Fix part #164: Hifi content card #338
Conversation
@veena14cs please mention these issues in High Fidelity Mock document too. |
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.
LGTM, nit changes.
@veena14cs I am unassigning @BenHenning and @seanlip from this, considering, this will be merged and then refinalised in Deadline2. |
I'am unassigning me please do the nit changes and assign back to me. |
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.
Looks really great now.
Issue in this screenshot is bullets. There is new line tag in json data, so the text that has bullets is shown in the new line and with tabs. @BenHenning @rt4914 @seanlip @nikitamarysolomanpvt I need your suggestion on this what we can do for this. For debugging I removed \n\t from json data and here is how it looks. |
Does the JSON data match the JSON data from the server? @vinitamurthi I think what you've done is fine as a temporary solution, but if the original data matches then we should file an issue to figure out what is going wrong. Also, the bullets still don't look right. Shouldn't they have spacing around them? I assume they are ul/li elements? I would expect them to look like:
|
Yes you are correct, but when I am removing \n\t I am getting in this form. If I remove only \n it is not making any changes. Below is the data |
Is there a lot of |
Yes, here is the original line of data containing bullets.
\n\n<ul>\n\t<li>\n\t<p><strong>What a \"ratio\"
is</strong></p>\n\t</li>\n\t<li>\n\t<p><strong>How to write ratios
using a colon, e.g. “2:3”.</strong></p>\n\t</li>\n</ul>\n\n
…On Fri, Nov 15, 2019 at 3:04 PM Sean Lip ***@***.***> wrote:
Is there a lot of \n\t all over the JSON file? If so then maybe this is
an end-of-line encoding issue and we need to strip this stuff out before
storing/displaying the JSON. /cc @BenHenning
<https://github.com/BenHenning> @vinitamurthi
<https://github.com/vinitamurthi>
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#338?email_source=notifications&email_token=AD4LXZBJFJ22QF42IFYBEBLQTZUL3A5CNFSM4JM254BKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEE3TGA#issuecomment-554285464>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD4LXZG3A5ZCOYHPJZLXDMTQTZUL3ANCNFSM4JM254BA>
.
|
Looks like the \n\t correspond to whitespace in the original HTML file. But generally extra whitespace in HTML should not alter how it's presented? (I'm not sure about the Android quirks though.) |
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.
I thought at one point we were replacing \n with
, but I couldn't find that anywhere. It does look like an importing error @vinitamurthi. Any ideas?
Let's submit this without the proper HTML parsing--I filed #361 to tack that work. |
This should also fix #372. |
Okay I will create this work in seperate PR. |
Explanation
This Pr corresponds to Content-cards and feedback
Known Issues
Explorations data has no image. Need data with image. Resolved
There is already padding for some of the text data from JSON file. So its showing too much padding for some of the contents. Resolved here
Images are not center aligned.
Mock
https://xd.adobe.com/spec/e2239cf4-9cde-4c08-5296-25316c1f0a14-9412/screen/b7069e13-ae14-44ca-ac1c-c96d43c8f3c4/PM-Q2-CA-Continue-
Screenshot