feat: still need to fix the viewport in child pages issue

This commit is contained in:
Nick 2024-12-23 04:16:05 -06:00
parent 76fa1ff381
commit 83a836438b
6 changed files with 156 additions and 107 deletions

View file

@ -170,8 +170,8 @@ contentList device argument =
}
]
[ column [ width fill, spacing 8 ]
[ summaryMakerDesktop argument
, strengthBar argument
[ summaryMakerDesktop device argument
, strengthBar device argument
]
, case ( device.class, device.orientation ) of
( Phone, Portrait ) ->
@ -315,20 +315,6 @@ reductioMakerDesktop argument =
]
reductioMakerMobile : Argument -> Element msg
reductioMakerMobile argument =
case argument.propositionReductio of
"" ->
none
reductio ->
row
[]
[ reductioMaker
, reductioMakerTitle reductio
]
reductioMaker : Element msg
reductioMaker =
column
@ -363,17 +349,19 @@ reductioMakerTitle reductio =
]
summaryMakerDesktop : Argument -> Element msg
summaryMakerDesktop argument =
row []
[ summaryMaker
, summaryMakerTitle argument
]
summaryMakerDesktop : Device -> Argument -> Element msg
summaryMakerDesktop device argument =
(case ( device.class, device.orientation ) of
( Phone, Portrait ) ->
column
( Tablet, Portrait ) ->
column
summaryMakerMobile : Argument -> Element msg
summaryMakerMobile argument =
column []
_ ->
row
)
[]
[ summaryMaker
, summaryMakerTitle argument
]
@ -426,9 +414,19 @@ summaryMakerTitle argument =
]
strengthBar : Argument -> Element msg
strengthBar argument =
row [ E.width fill ]
strengthBar : Device -> Argument -> Element msg
strengthBar device argument =
(case ( device.class, device.orientation ) of
( Phone, Portrait ) ->
column
( Tablet, Portrait ) ->
column
_ ->
row
)
[ E.width fill ]
[ strengthMaker
, strengthMakerBar argument
]