Skip to content

Commit

Permalink
Adjust readability and padding of item panel footer size (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caedis authored Mar 7, 2024
1 parent b9cd48f commit 1b34b24
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/codechicken/nei/ItemPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,14 @@ protected int resizeFooter(GuiContainer gui) {
historyPanel.x = x;
historyPanel.w = w;
historyPanel.h = ItemsGrid.SLOT_SIZE * NEIClientConfig.getIntSetting("inventory.history.useRows");

if (NEIClientConfig.showItemQuantityWidget() || !NEIClientConfig.isSearchWidgetCentered()) {
historyPanel.y = quantity.y - historyPanel.h - PanelWidget.PADDING;
return quantity.h + historyPanel.h + PanelWidget.PADDING * 2;
} else {
historyPanel.y = y + h - historyPanel.h - PanelWidget.PADDING;
historyPanel.y = y + h - historyPanel.h;
return historyPanel.h + PanelWidget.PADDING;
}
return ((NEIClientConfig.showItemQuantityWidget() || !NEIClientConfig.isSearchWidgetCentered()) ? quantity.h
: 0) + historyPanel.h + PanelWidget.PADDING * 2;
}

return quantity.h + PanelWidget.PADDING;
Expand Down

0 comments on commit 1b34b24

Please sign in to comment.