-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Make edition component responsive #1899
Make edition component responsive #1899
Conversation
Is there a way to reduce the copious amounts of whitespace in both the desktop and mobile layouts? Doesn't the current desktop put the title, etc, next to the cover image? Because of the aspect ratio of most covers (tall, narrow), there's a lot of space wasted if nothing is put next to them. For the mobile version, perhaps the "Read" button could be moved up there. We certainly don't need a full width Read button. I'd also consider using different data elements on desktop and mobile. For example, is the publisher really important enough to take up valuable mobile screen real estate? |
That looks muuuch nicer! I think the download button is interesting, but in the interest of progress, let's drop it. I think it would take too long to make it look nice/work smoothly. Could you show a mockup with multiple books? Also place the DAISY link below the read button (so it's consistent with the desktop version of the site). |
agree, the download button as designed is problematic for a variety of reasons including that the reading log button is green (conflicting color scheme) I'd just add it as an option either under the read button, or as another option besides the other download formats. |
@mek Actually, I wasn't sure what component to use for a dropdown so I used the reading long button just to provide a rough sample of how a dropdown download button would look. 😆 Didn't intend for it to be used in the long run. I'm willing to design and implement a download button next if it is wanted. @cdrini @jdlrobson Mockup with multiple books on mobile |
Awesome! That's coming along nicely. If we want a download button, I think we should investigate it in a new issue; for now let's not worry about it. Ok, some final changes:
Thanks for your patience, @koderjoker ! Assuming nothing goes horribly wrong, this should be the last set of changes :P |
Firstly just summarising the structure of the table that is being reformatted, to make referring back to some stuff easier For every tr For mobile:
Unfortunately, the tablet version still needs changes :p For starters, the width of the 'read eBook button' definitely needs to be reduced. We then could have the 'daisy and download links' on one line and the 'library and purchasing links' on another, but the read ebook button would still have space left over on the side... We could overcome that with a future download button though. The 'read ebook and download button' on one line, and 'library links and purchase links' on another. |
@@ -30,7 +30,6 @@ | |||
position: relative; | |||
z-index: @z-index-level-1; | |||
margin: 15px 0; | |||
float: left; |
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.
Are you sure this doesn't break any other dataTables (I don't know the answer)?
If you're not confident, I'd suggest keeping this and adding a more specific CSS selector inside static/css/components/editions.less to override this rule.
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.
@jdlrobson this change is no longer necessary in the latest changes I made, so I'll leave it unchanged in the next commit 👍
This looks really good to me. I would be open to merging this as is provided we iterate on top of it. With that in mind I've removed the WIP tag ( please see #1339 (comment)) Great work @koderjoker it's great to start seeing these mobile experiences come to life! |
c106d9b
to
cf19feb
Compare
@jdlrobson @mekarpeles @cdrini @tfmorris Final look for |
Nice @koderjoker! I know this has dragged on for a bit, but I think the design of this has improved greatly :) Here are some final notes/comments:
|
I think download options and also Library link and worldcat should appear
above the called action button that way the call the action button is
always predictably the last item in the list and it feels like there is a
rhythm
…On Sun, Mar 3, 2019, 9:38 AM Drini Cami ***@***.***> wrote:
Nice @koderjoker <https://github.com/koderjoker>! I know this has dragged
on for a bit, but I think the design of this has improved greatly :) Here
are some final notes/comments:
- Could you test this with a borrowable book that's been borrowed?
Usually that would cause 2 buttons to appear: "Read" and "Return"; do they
still display ok?
- Hmm, maybe try adding commas to separate the libraries (you can use
CSS pseudo-elements to do this)? I think keeping them on one line is still
better, even if there's a risk they'll wrap sometimes. An interface that is
good 95% of the time and ok 5% of the time is better than an interface that
is ok 100% of the time.
- Would it be possible to hide empty cells using the CSS :empty
pseudo-selector?
- agreed the tablet view looks a little funky :P in the interest of
progress, I'd suggest opening a new issue for that once this is merged.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1899 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA7tlZw1YqW580P3HQfoxc0BKJKmDTjhks5vTAixgaJpZM4a_t9->
.
|
@mekarpeles do you mean that I should shift the 'Read eBook button' to the bottom of it's td and tr? |
I think this makes sense (along with the print disabled Daisy link)
…On Mon, Mar 4, 2019, 1:33 AM Kanchan Joshi ***@***.***> wrote:
For every tr
td1- Contains the book cover and title data
td2- Contains the read book button, daisy link and download links
td3- Contains library links
td4- Contains links for purchasing
@mekarpeles <https://github.com/mekarpeles> do you mean that I should
shift the 'Read eBook button' to the bottom of it's td and tr?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1899 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA7tlfd52uZhzXF4oHmSVkqEapWa8Aogks5vTOhwgaJpZM4a_t9->
.
|
(FYI, if the |
Yup @cdrini, I'm aware of the above. Will implement the new changes as specified. |
@mekarpeles @cdrini @jdlrobson as per changes suggested |
Sweet! Lgtm. Can we get this on dev, @mekarpeles ? |
@cdrini + @koderjoker this is live on https://dev.openlibrary.org, let's test! |
Oh, @koderjoker I don't think you've pushed your latest changes :P the thing on dev is what you had a few days ago. |
Wait, this wasn't supposed to happen 😂 I had put up the UI screenshots up first so that they could be approved before I pushed the latest changes! |
@mekarpeles @jdlrobson @cdrini encountering a couple of errors with the css build size
|
These are all minor, so you should bump to them (but acknowledge the increases) in the commit message. You can find these values defined in package.json. While these values ideally would be going down, I think in this situation the increase is necessary, so you have my blessing to increase them :) |
Maximum bundle size increased for page-admin, page-form, page-plain and page-user.
Love the suggested fix!! |
(copied from my msg in slack: https://internetarchive.slack.com/archives/C0ETZV72L/p1551996974120600?thread_ts=1551902952.094300&cid=C0ETZV72L) The Currently the “DAISY for print-disabled” is very cramped. It looks like re: border-bottom, perhaps something closer to hsla 0, 0, 87% (I think we have a light-grey in static/css/less/colors.less) before after |
Using flex order has affected the tab order. Got to resolve that! Another thing I noticed while tabbing through the page with voice over is that a user isn't informed when an eBook isn't available, and the library links' placement isn't clear on the mobile and tablet version of the component. Could work on those features too, or add them in another PR. |
This is really coming along, great work @koderjoker! Is there a checklist of remaining todos? Or is this ready for review (I think tabbing is reasonable to make a separate issue -- I've created it here: #1963) |
Ready for review! |
Did reducing with width of the "Read" button get lost? I commented on it a few weeks ago and @koderjoker said:
which sounded like agreement that it was too wide. Paradoxically, it's fine when the screen is wide, but below ~770 pix, it jumps to full width. Also, a nit, but the Probably not for this ticket, but I wonder why we're sending any traffic to a commercial service which has a tiny fraction of the holdings of WorldCat. As long as we're keeping it though, we should at least make it clear to the users where we're sending them off to. |
@tfmorris -- Library.Link is a team that spun out of oclc and they've been partnering directly with Internet Archive. Agreed re: presentation that opening a ticket would be great re: full sized button, I also think this a good point -- may I also open this as a followup issue so this can finally be merged? 🎉 |
congrats @koderjoker ! |
Makes the edition component responsive
Closes #1339
For laptops screens
For mobile