Skip to content

Commit

Permalink
Hotfix for edge case player question overflow. Fixed bad missingItems…
Browse files Browse the repository at this point in the history
… reference in player.
  • Loading branch information
clpetersonucf committed Jan 8, 2024
1 parent 5b50a0f commit 8473ca6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/src-assets/player-assets/player.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ angular.module('Adventure', ['ngAria', 'ngSanitize'])
$scope.missingRequiredItems = $scope.checkInventory(requiredItems)

if $scope.missingRequiredItems[0]
$scope.missingRequiredItemsAltText = missingItems.map((item) -> "#{$scope.itemSelection[$scope.getItemIndex(item.id)].name} (amount: #{requiredItems.find((el) -> el.id is item.id).range});")
$scope.missingRequiredItemsAltText = $scope.missingRequiredItems.map((item) -> "#{$scope.itemSelection[$scope.getItemIndex(item.id)].name} (amount: #{requiredItems.find((el) -> el.id is item.id).range});")
$scope.next = null
return

Expand Down
4 changes: 3 additions & 1 deletion src/src-assets/player-assets/player.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ body {
position: absolute;
width: 0;
height: 0;
overflow: hidden;
}

.aria-live-region {
Expand Down Expand Up @@ -256,6 +257,8 @@ h1 {
box-sizing: border-box;
margin-bottom: auto;

overflow-y: auto;

background: #fff;


Expand Down Expand Up @@ -493,7 +496,6 @@ h1 {
box-sizing: border-box;

max-height: 250px;
overflow-y: auto;

font-family: 'Lora', serif;

Expand Down

0 comments on commit 8473ca6

Please sign in to comment.