Skip to content

RediWM is a Wayland compositor written in Zig (OpenGL ES) that includes everything in one process

Fix sidebar header width expectation

Melf8a96929a230
diff --git a/src/files/app_sidebar_tests.zig b/src/files/app_sidebar_tests.zig
index 016157c..385f8c1 100644
--- a/src/files/app_sidebar_tests.zig
+++ b/src/files/app_sidebar_tests.zig
@@ -142,7 +142,7 @@ test "sidebar header bounds follow painted width and scrollbar track" {
const places = app.sidebarLayout().cards[@intFromEnum(app_model.SidebarSection.places)];
const bounds = app.sidebarHeaderBounds(places).?;
try std.testing.expectEqual(@as(f64, 8), bounds.x);
- try std.testing.expectEqual(@as(f64, 172), bounds.w);
+ try std.testing.expectEqual(@as(f64, 164), bounds.w);
const center_y = bounds.y + bounds.h / 2;
try std.testing.expectEqual(