Skip to content

wip mobile responsiveness#14

Draft
sunnyzanchi wants to merge 10 commits intomainfrom
mobile
Draft

wip mobile responsiveness#14
sunnyzanchi wants to merge 10 commits intomainfrom
mobile

Conversation

@sunnyzanchi
Copy link
Owner

this PR is a work in progress, just making the PR to get it to deploy

Zanchi added 10 commits May 30, 2022 21:47
switch index.css to scss to use breakpoint
changes for font sizing and spacing for mobile
i thought about how to adapt the existing
desktop Initiative interface to work on mobile.
i came to the conclusion that the spreadsheet
UI wouldn't work for mobile, so i went with a
card-based approach.

it's not complete, the cards aren't editable,
but it's an okay starting point for the layout.
not sure about the add button color
adds spring transitions to items lower
than the newly expanded one, so they'll slide down.
also adds scrolling so the screen will auto scroll
and the newly expanded item will be at the top
mobile can use `window.scrollTo`,
but desktop has `overflow: scroll` on the
containg section element, so the container
has to be scrolled
tweaked the timing a little,
added some delay to the slide.
i can already tell this is going to
require a lot of tweaking to get right,
but it's worth it
initial steps towards generalizing the
expanding/sliding/transitions for a list.
currently working out the kinks as i'm implementing
it in Creatures, but the idea is that this will be
usable for Creatures, Items, and future modules (Spells)
@vercel
Copy link

vercel bot commented Jun 1, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
dnd-tools ✅ Ready (Inspect) Visit Preview Jun 1, 2022 at 2:39AM (UTC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant