Open orta opened 7 years ago
I've not been able to figure this because of the client/server javascript with mixed inline stylesheets
Can't use @media
queries without breaking the abstraction, and can't use the request navigation ID to figure out if mobile either. Any ideas @craigspaeth ?
FWIW you could also use state + a controller to do a device detection approach e.g.
router.use((ctx, next)=> {
const isMobile = ctx.bootstrap(() => ctx.headers['user-agent'].match('mobile'))
state.set({ isMobile })
next()
})
We did something like this in Prediction at one point, but I think working media queries is better.
70