Closed bitspittle closed 1 month ago
Made a few changes for the phone screen and smaller window this week, It's a lot better now for the most part. The only thing left here I think is the nav header and icons look a bit smaller on phone and can be improved.
Oh nice I didn't even check.
Have you seen how to do responsive styles? They're mentioned in the README but I haven't documented them well yet.
Something like:
ComponentStyle("blah") {
base { ... applies to mobile ... }
Breakpoint.MD { ... applies to desktop ... }
}
You can also use media queries in the site's StyleSheet
On Wed, Dec 8, 2021, 8:05 AM dm11 @.***> wrote:
Made a few changes for the phone screen and smaller window this week, It's a lot better now for the most part. Now, I think the nav header and icons look a bit smaller on phone and can be improved.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/varabyte/kobweb-site/issues/4#issuecomment-988949004, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKNONAXCLS5ZJ76P632MII3UP5657ANCNFSM5JTBYL2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Nice, yeah I saw how the grid items were done.
But most optimizations I made were removing hardcoded values for spacing and width. Like earlier, there would be a lot of margin space on the sides of the sections and the fixed height & width of grid items didn't look good on phones.
It can be improved a bit more but for now it looks like this:
Oh great! Feel free to close this bug unless you were still working on something.
On Wed, Dec 8, 2021, 8:33 AM dm11 @.***> wrote:
Nice, yeah I saw how the grid items were done.
But most optimizations I made were removing hardcoded values for spacing and width. Like earlier, there would be a lot of margin space on the sides of the sections and the fixed height & width of grid items didn't look good on phones.
So now it looks like this: [image: Screen Shot 2021-12-08 at 8 29 33 AM] https://user-images.githubusercontent.com/47491495/145246381-b825e83f-cdc0-4a45-b5e9-243cca9d431b.png :
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/varabyte/kobweb-site/issues/4#issuecomment-988973720, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKNONAWHIEPEZ6WJU2UH653UP6CE7ANCNFSM5JTBYL2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I'll keep it open for now, it still needs some work
We should use responsive styles that feel good on a mobile device instead of it looking like a super tiny desktop mode
See also this reddit comment: https://www.reddit.com/r/Kotlin/comments/r94xg3/comment/hnascvf/?utm_source=share&utm_medium=web2x&context=3