Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Modified default column width based on device width #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

luminairre
Copy link

  • On iPhone plus series and smaller (414px and lower)
    • Default column width is screen width
    • Min column width is half of screen width, enabling two column layout
  • On portrait tablet (768px to 415px)
    • Default column width is half of screen width
    • Min column width is third of screen width, enable three column layout

Pushed and tested at my heroku, might need more testing. Also, my first time writing Scala, were you to accept this idea, feel free to rewrite the code.

* On iPhone plus series and smaller (414px and lower)
** Default column width is screen width
** Min column width is half of screen width, enabling two column layout
* On portrait tablet (768px to 415px)
** Default column width is half of screen width
** Min column width is third of screen width, enable three column layout
@walfie
Copy link
Owner

walfie commented Jul 8, 2017

Sorry this has been left open for so long! I don't know how well it reacts to changes in window size (either resizing on desktop or caused by rotations, etc), but in any case it feels like too specific of a use-case to me

@luminairre
Copy link
Author

No worries, there is no on resize bindings, just on load, maybe I should add that. Anyways, since you're working on something new already, you can leave this be, at least it's working like I wanted on my server for now lol.

The use case is.. just increasing mobile friendliness, I don't know how many % of the userbase accesses raidfinder from mobile so.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants