Skip to content

Commit

Permalink
Remove eye icon from short answers
Browse files Browse the repository at this point in the history
  • Loading branch information
cayb0rg committed Nov 21, 2023
1 parent 995d2bc commit cf4b9e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 1 addition & 5 deletions src/creator.html
Original file line number Diff line number Diff line change
Expand Up @@ -636,11 +636,7 @@ <h2 ng-if="displayNodeCreation == END">End Point</h2>
<button type="button"
class="delete-button icon-cross"
ng-click="removeAnswerPreCheck($index, $event)"></button>
<button ng-show="inventoryItems[0]" aria-label="answer.hideAnswer ? 'Answer will be hidden to players without the required items' : 'Answer will be visible to all players, with or without the required items'" ng-click="answer.hideAnswer = !answer.hideAnswer" ng-class="{'hide-answer': answer.hideAnswer}" class="hide-answer-button" ng-mouseover="showHideAnswerTooltip=true" ng-mouseleave="showHideAnswerTooltip=false">
<img ng-if="!answer.hideAnswer" src="assets/creator-assets/eye.png"/>
<img ng-if="answer.hideAnswer" src="assets/creator-assets/eye-blocked.png"/>
<div ng-if="showHideAnswerTooltip" class="hide-answer-tooltip"><p ng-if="!answer.hideAnswer">Answer will be visible to all players, with or without the required items</p><p ng-if="answer.hideAnswer">Answer will be hidden to players without the required items</p></div>
</button>

</div>
<div class="answer-textareas">
<div class="add-match-box">
Expand Down
4 changes: 3 additions & 1 deletion src/src-assets/creator-assets/creator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,8 @@ required-items-tooltip {

.delete-button {
height: 24px;
width: 24px;
min-width: 24px;
max-width: 24px;
padding: 0;
}
}
Expand Down Expand Up @@ -1520,6 +1521,7 @@ required-items-tooltip {
flex-direction: row;
grid-gap: 10px;
align-items: center;
flex-wrap: wrap;
}
.quantity-explanation {
font-size: 12px;
Expand Down

0 comments on commit cf4b9e4

Please sign in to comment.