pietroppeter / parlelm

un gioco di parole al giorno - in elm
https://parle.it/
MIT License
1 stars 1 forks source link

fix: responsive wrapper [fixes #10] #29

Closed akiross closed 5 months ago

akiross commented 5 months ago

This tag does the magic and should fix sizing on mobiles:

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

But <head> elements are not managed by Elm, so we can just insert elm's output into an HTML page and build with

elm make src/Main.elm --output=static/main.js

I'm not too sure about the github pages workflow.

pietroppeter commented 5 months ago

ooh, good catch, it does sound like something that would fix the issue!

regarding the github pages workflow, with what we have now I would assume the app would now appear under the relative path static. I am assuming there might be a way to output both js and html at root level right? otherwise it might be possible to reconfigure the deploy pages action with a specific folder (but I would prefer first if we try to output at root level).

pietroppeter commented 5 months ago

Ok let's try it like this and I will understand it later :D (good enough you are confident about this)