Skip to content

Commit

Permalink
[DSW-1643] Fix narrow panel in project import view
Browse files Browse the repository at this point in the history
  • Loading branch information
janslifka committed Jan 6, 2023
1 parent 9418751 commit 938e232
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions engine-wizard/elm/Wizard/Projects/Import/Subscriptions.elm
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
module Wizard.Projects.Import.Subscriptions exposing (subscriptions)

import ActionResult
import Wizard.Common.Components.Questionnaire as Questionnaire
import Wizard.Ports as Ports
import Wizard.Projects.Import.Models exposing (Model)
import Wizard.Projects.Import.Msgs exposing (Msg(..))


subscriptions : Sub Msg
subscriptions =
Ports.gotImporterData GotImporterData
subscriptions : Model -> Sub Msg
subscriptions model =
Sub.batch
[ ActionResult.unwrap Sub.none (Sub.map QuestionnaireMsg << Questionnaire.subscriptions) model.questionnaireModel
, Ports.gotImporterData GotImporterData
]
2 changes: 1 addition & 1 deletion engine-wizard/elm/Wizard/Projects/Subscriptions.elm
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ subscriptions route model =
Sub.map MigrationMsg <| Wizard.Projects.Migration.Subscriptions.subscriptions model.migrationModel

ImportRoute _ _ ->
Sub.map ImportMsg Wizard.Projects.Import.Subscriptions.subscriptions
Sub.map ImportMsg <| Wizard.Projects.Import.Subscriptions.subscriptions model.importModel
1 change: 1 addition & 0 deletions engine-wizard/scss/modules/Projects/_Import.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ $content-height: calc(100vh - #{$header-height});

.questionnaire {
height: $content-height;
flex-grow: 1;
}

&__Results {
Expand Down

0 comments on commit 938e232

Please sign in to comment.