fix(layout): sidebar button height + status-bar version-slot clipping

This commit is contained in:
2026-05-05 22:59:57 +02:00
parent 3e98b9103f
commit 23e47e06c0
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -1541,7 +1541,7 @@ public sealed class ChatLogWindow : Window
using (ImRaii.PushColor(ImGuiCol.Text, ColourUtil.RgbaToAbgr(iconColor))) using (ImRaii.PushColor(ImGuiCol.Text, ColourUtil.RgbaToAbgr(iconColor)))
using (Plugin.FontManager.FontAwesome.Push()) using (Plugin.FontManager.FontAwesome.Push())
{ {
clicked = ImGui.Button($"{icon.ToIconString()}##sidebar-tab-{tabI}", new Vector2(36f, 32f)); clicked = ImGui.Button($"{icon.ToIconString()}##sidebar-tab-{tabI}", new Vector2(36f, ImGui.GetFrameHeight()));
} }
if (isCurrentTab) if (isCurrentTab)
+2 -4
View File
@@ -99,8 +99,6 @@ internal sealed class StatusBar
ImGui.Dummy(new Vector2(0, 2)); // BorderTop-Spacing ImGui.Dummy(new Vector2(0, 2)); // BorderTop-Spacing
using var group = ImRaii.Group();
// Slot 1: Active-Channel-Indicator // Slot 1: Active-Channel-Indicator
var inputCh = plugin.CurrentTab?.CurrentChannel?.Channel ?? InputChannel.Invalid; var inputCh = plugin.CurrentTab?.CurrentChannel?.Channel ?? InputChannel.Invalid;
var hasChannel = inputCh != InputChannel.Invalid; var hasChannel = inputCh != InputChannel.Invalid;
@@ -145,8 +143,8 @@ internal sealed class StatusBar
// Slot 5: Version (rechtsbündig, muted) // Slot 5: Version (rechtsbündig, muted)
var versionText = $"v{Plugin.Interface.Manifest.AssemblyVersion} · Hellion"; var versionText = $"v{Plugin.Interface.Manifest.AssemblyVersion} · Hellion";
var versionWidth = ImGui.CalcTextSize(versionText).X; var versionWidth = ImGui.CalcTextSize(versionText).X;
var rightCursor = ImGui.GetWindowSize().X - versionWidth - ImGui.GetStyle().WindowPadding.X; var contentRegionMax = ImGui.GetContentRegionMax().X;
ImGui.SameLine(rightCursor); ImGui.SameLine(contentRegionMax - versionWidth);
using (ImRaii.PushColor(ImGuiCol.Text, ColourUtil.RgbaToAbgr(theme.Colors.TextMuted))) using (ImRaii.PushColor(ImGuiCol.Text, ColourUtil.RgbaToAbgr(theme.Colors.TextMuted)))
{ {
ImGui.TextUnformatted(versionText); ImGui.TextUnformatted(versionText);