Skip to content

Commit e525d99

Browse files
committed
add style
1 parent f565c5f commit e525d99

File tree

3 files changed

+31
-20
lines changed

3 files changed

+31
-20
lines changed

admin/app/components/quests/requirements/form.gjs

+24-19
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,31 @@ export default class RequirementForm extends Component {
3939
<PageTitle>
4040
<:title>Créer ou Éditer un "requirement" de quête</:title>
4141
</PageTitle>
42-
<PixBlock @variant="admin" class="quest-requirement-form">
43-
<PixSelect
44-
@onChange={{this.updateRequirementType}}
45-
@value={{this.selectedRequirementType}}
46-
@options={{this.requirementTypeOptions}}
47-
@placeholder="Choisissez votre type de requirement"
48-
@hideDefaultOption={{true}}
49-
>
50-
<:label>Sélectionner un type de requirement</:label>
51-
</PixSelect>
42+
<section class="quest-object-form">
43+
<PixBlock @variant="admin" class="quest-requirement-form">
44+
<PixSelect
45+
class="quest-requirement-form__item-width-content"
46+
@onChange={{this.updateRequirementType}}
47+
@value={{this.selectedRequirementType}}
48+
@options={{this.requirementTypeOptions}}
49+
@placeholder="Choisissez votre type de requirement"
50+
@hideDefaultOption={{true}}
51+
>
52+
<:label>Sélectionner un type de requirement</:label>
53+
</PixSelect>
5254

53-
<div>
54-
{{#if this.selectedRequirementType}}
55-
<ObjectRequirementForm @configuration={{this.configurationForSelectedRequirement}} />
56-
{{/if}}
57-
</div>
55+
<div>
56+
{{#if this.selectedRequirementType}}
57+
<ObjectRequirementForm @configuration={{this.configurationForSelectedRequirement}} />
58+
{{/if}}
59+
</div>
60+
</PixBlock>
5861

59-
<PixButtonLink @route="authenticated.quest-creator" @size="small" @variant="primary">
60-
Revenir au formulaire de quête
61-
</PixButtonLink>
62-
</PixBlock>
62+
<div class="quest-button-edition__button">
63+
<PixButtonLink @route="authenticated.quest-creator" @size="small" @variant="primary">
64+
Revenir au formulaire de quête
65+
</PixButtonLink>
66+
</div>
67+
</section>
6368
</template>
6469
}

admin/app/components/quests/requirements/object/form.gjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ export default class ObjectRequirementCreateOrEditForm extends Component {
7474

7575
<template>
7676
<form class="quest-object-form" {{on "submit" this.saveSnippet}}>
77-
<PixInput onchange={{this.updateLabel}} required={{true}} aria-required={{true}}>
77+
<PixInput class="quest-requirement-form__item-width-content"
78+
onchange={{this.updateLabel}} required={{true}} aria-required={{true}}>
7879
<:label>Nom de la condition</:label>
7980
</PixInput>
8081

admin/app/styles/components/quests/form.scss

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
display: flex;
2828
flex-direction: column;
2929
gap: 24px;
30+
31+
&__item-width-content {
32+
width: 50%;
33+
min-width: fit-content;
34+
}
3035
}
3136

3237
.quest-object-form {

0 commit comments

Comments
 (0)