Skip to content

Commit

Permalink
Remove 'done' button from required item and node item modals
Browse files Browse the repository at this point in the history
  • Loading branch information
cayb0rg committed Nov 30, 2023
1 parent c4ac178 commit f91c0d8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/creator.html
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ <h3>Required Items for Answer</h3>
</div>
</div>
<div class="item-options-container" ng-class="{'flex-start': showAdvancedOptions, 'show': hoverItem}">
<div class="item-quantity">
<div class="item-minimum-quantity">
<label ng-show="!showAdvancedOptions" for="increase-min-count-{{item.id}}">Required Quantity</label>
<label ng-show="showAdvancedOptions" for="increase-min-count-{{item.id}}">Min Quantity</label>
<input ng-focus = "event = $event" id="increase-min-count-{{item.id}}" type="number" ng-model="item.tempMinCount" min="0" ng-change="updateMinCount(event, item)"/>
Expand Down Expand Up @@ -774,11 +774,11 @@ <h3>Required Items for Answer</h3>
<label for="answer-show-advanced">Use Advanced Options</label>
</div>

<button class="save-button important-button"
<!-- <button class="save-button important-button"
ng-class="{'lowered' : displayNodeCreation == HOTSPOT}"
type="button"
ng-click="toggleRequiredItemsModal()">Done
</button>
</button> -->
</div>
<!-- <i class="arrow-right"></i> -->
</div>
Expand Down Expand Up @@ -987,7 +987,7 @@ <h3>Required Items for Hotspot</h3>
</div>
<div class="item-options-container" ng-class="{'show': hoverItem}">

<div class="item-quantity">
<div class="item-minimum-quantity">
<label ng-show="!showAdvancedOptions" for="increase-min-count-{{item.id}}">Required Quantity</label>
<label ng-show="showAdvancedOptions" for="increase-min-count-{{item.id}}">Min Quantity</label>
<input ng-focus = "event = $event" id="increase-min-count-{{item.id}}" type="number" ng-model="item.tempMinCount" min="0" ng-change="updateMinCount(event, item)"/>
Expand Down Expand Up @@ -1261,7 +1261,7 @@ <h3>Required Items for Answer</h3>
</div>
<div class="item-options-container" ng-class="{'show': hoverItem, 'flex-start': showAdvancedOptions}">
<div class="item-quantity-options">
<div class="item-quantity">
<div class="item-minimum-quantity">
<label for="increase-min-count-{{item.id}}" ng-show="showAdvancedOptions">Min Quantity</label>
<label for="increase-min-count-{{item.id}}" ng-show="!showAdvancedOptions">Required Quantity</label>
<input ng-focus = "event = $event" id="increase-min-count-{{item.id}}" type="number" ng-model="item.tempMinCount" min="0" ng-change="updateMinCount(event, item)"/>
Expand Down Expand Up @@ -1517,11 +1517,11 @@ <h4>Take Player Items</h4>
</div>
</div>

<button class="save-button important-button"
<!-- <button class="save-button important-button"
ng-class="{'lowered' : displayNodeCreation == HOTSPOT}"
type="button"
ng-click="toggleNodeItemsModal()">Done
</button>
</button> -->
</div>
</div>
<button type="button"
Expand Down
13 changes: 12 additions & 1 deletion src/src-assets/creator-assets/creator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ required-items-tooltip {
align-content:start;
}

.item-quantity {
.item-minimum-quantity, .item-quantity {
display: flex;
flex-direction: row;
grid-gap: 10px;
Expand All @@ -1236,6 +1236,17 @@ required-items-tooltip {
}
}

.item-quantity-options {
gap: 10px;
display: flex;
flex-direction: column;
}

.quantity-explanation {
font-style: italic;
padding: 10px 0;
}

.greyed-out {
color: $gray-darker;
font-style: italic;
Expand Down

0 comments on commit f91c0d8

Please sign in to comment.