Responsive design for mobile #953
Replies: 2 comments 4 replies
-
Mobile compatibility is definitely a long-term priority for us, but optimizing for desktops was a trade-off we've made early on to drastically speed up development on features (one set of designs to both create and implement). Long term, a companion app / mobile app and some responsive optimizations for the web app will definitely be prioritized, but it will be a while before we reach that point of the roadmap. |
Beta Was this translation helpful? Give feedback.
-
I made a small prototype which solves this issue easily. You can try this out in the browser dev tools without modifying any rails views:
import('https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/cdn/components/drawer/drawer.js');
sl-drawer {
&::part(panel) {background: white;}
@media (width >= 975px) {
display: block;
}
}
matchMedia('(width >= 975px)')
.addEventListener('change', function(event) {
document.querySelector('sl-drawer').open = event.target.matches;
}); Combining this (or something similar) with some tighter padding for the content on mobile widths would solve 80% of the mobile use case, and would enable users to quickly register transactions "from the coffee shop", without overly burdening maintainance. what i didn't cover in this short experiment was a toggle button in the header (e.g. hamburger button or the like) but that could be easily added |
Beta Was this translation helpful? Give feedback.
-
I know this is an early stage of the application, but I don't see anything in the roadmap about responsive design, specifically for mobile.
The feature I'm thinking about is a design for mobile that can then be installed as a web app on smartphones. This can be then be used as simple first party "companion" application on smartphones.
Beta Was this translation helpful? Give feedback.
All reactions