AyronK / arpg-timeline

Stay ahead in your favorite ARPGs with the season tracker. Never miss a season start or end again!
https://ayronk.github.io/arpg-timeline/
MIT License
6 stars 2 forks source link

Improve cards for mobile users #61

Closed savicaleksa closed 2 months ago

savicaleksa commented 2 months ago

Changed the way cards look until sm breakpoint for mobile users.

Card with exact date of next cycle: image

Card with estimated date of next cycle: image

Wrapping of the the date and countdown if they're too long (this could be changed by, for example, flex wrapping the chip and date or flex wrapping the countdown under those two, but it wouldn't look like the other cards so I think it should just be left like this): image

Layout remains the same as before after sm. The gap between the green chip and the date may be shorter than the one in the second picture of #51 , but it's the same as the gap between the gray chip and progress bar (which is the same as in the picture).

Let me know if I should change something else.

savicaleksa commented 2 months ago

Branch name isn't in the format specified in CONTRIBUTING.md because I was behind the commit in which the file was added. Sorry about that.

AyronK commented 2 months ago

Visually it looks almost perfect! There are some minor things that I would correct in this PR.

  1. When there is a long title, align the date to the bottom, rather than center image

  2. On smaller viewports the timer wraps, which looks weird. I created a workaround for this in #62, so you can just merge my changes to your fork. image

Other that that I can see that some long labels cause problems in smaller resolutions but I can take care of that later, it's nothing urgent. Thanks for contributing :)

savicaleksa commented 2 months ago

Got it, I'll post screenshots when I make the changes, but that will be a bit later since I'm away from home at the moment.

savicaleksa commented 2 months ago

I've fixed the alignment here: image Had to change line-height of the date because it didn't look aligned. Line height is back to normal at sm.

And the timer looks okay now: image

AyronK commented 2 months ago

Looks great, thank you for you work :)