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
mobile styling for iOS #179
Comments
This is the byproduct of the change we made yesterday to fix the font issue. |
I wonder wether it is because IOS safari doesn't support |
still having problem with embed code.
Attached screenshots. I used google chrome developer tools to show you as it works the same on actual device. LINK PREVIEW FROM YOUR SITE LINK TO MY SITE |
@espressodaily you need to set the embed to 100% and adjust your own css appropriately. |
@espressodaily you should probably set the viewport also: |
Thanks. |
@espressodaily just take a look at any of our example pages https://github.com/NUKnightLab/TimelineJS3/tree/master/compiled/examples
|
Thanks. I have that. Is there other code I should be using to properly handle iOS devices? Sorry, not really much experience with responsive sites. |
that styling alone doesn't make a difference. |
@zachwise I think the mobile style doesn't look good. The portrait style on mobile seems to be better. |
On my 5S and my iOS simulator, this is how the mobile styles look: Not sure if that layout is supposed to be that way, or if the arrows are supposed to disappear. Either way, the headlines definitely need help. (Related: #78) |
The side by side layout is the result of flex styles on mobile safari not being obeyed. It will be fixed soon |
Awesome, thanks. (Also rendering that way on mobile Chrome, though I'm using an old version. I'll try updating and see what happens.) |
Chrome uses safari rendering. |
Ah, it's a mobile webkit issue. Gotcha. |
So the embed code won't work properly on it's own on a mobile device? html, body { |
@zachwise just to be clear. it looks fine on your linkpreview with URL to http://cdn.knightlab.com/.... |
@espressodaily Make sure your iframe uses |
using this URL http://cdn.knightlab.com/libs/timeline3/latest/embed/index.html?source=1cWqQBZCkX9GpzFtxCWHoqFXCHg-ylTVUWlnrdYMzKUI&font=Default&lang=en&height=650
gets this in the iOS simulator on initial load
The text was updated successfully, but these errors were encountered: