Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit fbbaf57

Browse files
committed
fix another few alignment issues
1 parent dfef0be commit fbbaf57

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

1.latest/src/main/java/io/github/axolotlclient/modules/hud/gui/keystrokes/ConfigureKeyBindScreen.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import net.minecraft.client.gui.components.*;
3333
import net.minecraft.client.gui.layouts.FrameLayout;
3434
import net.minecraft.client.gui.layouts.HeaderAndFooterLayout;
35+
import net.minecraft.client.gui.layouts.LayoutSettings;
3536
import net.minecraft.client.gui.layouts.LinearLayout;
3637
import net.minecraft.client.gui.narration.NarrationElementOutput;
3738
import net.minecraft.client.gui.screens.Screen;
@@ -90,7 +91,7 @@ protected void updateWidgetNarration(NarrationElementOutput narrationElementOutp
9091
}
9192
}).active = false;
9293
body.addChild(labelFrame);
93-
currentKey = body.addChild(new StringWidget(Component.empty(), font));
94+
currentKey = body.addChild(new StringWidget(Component.empty(), font), LayoutSettings::alignHorizontallyCenter);
9495

9596
var optionsFrame = new FrameLayout();
9697
optionsFrame.setMinWidth(super.width);
@@ -163,7 +164,6 @@ protected void updateWidgetNarration(NarrationElementOutput narrationElementOutp
163164

164165
@Override
165166
protected void repositionElements() {
166-
layout.arrangeElements();
167167
if (isAddScreen && stroke.getKey() != null) {
168168
addButton.active = true;
169169
}
@@ -176,6 +176,7 @@ protected void repositionElements() {
176176
if (synchronizeButton != null) {
177177
synchronizeButton.active = stroke.getKey() != null;
178178
}
179+
layout.arrangeElements();
179180
}
180181

181182
@Override

1.latest/src/main/java/io/github/axolotlclient/modules/screenshotUtils/GalleryScreen.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ protected void init() {
150150
loadTab(current, columnCount, area);
151151
} catch (Exception e) {
152152
LinearLayout error = LinearLayout.vertical().spacing(8);
153-
error.defaultCellSetting().alignVerticallyMiddle();
153+
error.defaultCellSetting().alignVerticallyMiddle().alignVerticallyMiddle();
154154
error.addChild(new StringWidget(Component.translatable("gallery.error.loading"), font));
155155
setInitialFocus(error.addChild(Button.builder(Component.translatable("gallery.reload"), b -> rebuildWidgets()).build()));
156156
layout.addToContents(error);
@@ -307,7 +307,6 @@ private static class ImageListEntry extends ContainerObjectSelectionList.Entry<I
307307
private final List<ImageEntry> buttons;
308308
private final int size;
309309
private final ImageList list;
310-
private final List<ImageEntry> removalQueue = new ArrayList<>(1);
311310

312311
public ImageListEntry(int size, ImageList list) {
313312
this.size = size;

common/src/main/resources/assets/axolotlclient/lang/en_us.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,5 +853,7 @@
853853
"profiles.profile.import.notification.success.desc.one": "Imported 1 profile",
854854
"profiles.profile.import.notification.success.desc.more": "Imported %s profiles",
855855
"skins.manage.equip.confirm": "Confirm Equipping",
856-
"skins.manage.equip.download_current": "Your current skin is not downloaded and will get overridden by equipping a different one. Do you want to download your current skin before equipping this one?"
856+
"skins.manage.equip.download_current": "Your current skin is not downloaded and will get overridden by equipping a different one. Do you want to download your current skin before equipping this one?",
857+
"gallery.error.loading": "Failed to load Gallery",
858+
"gallery.reload": "Reload"
857859
}

0 commit comments

Comments
 (0)