LibWeb: Decrease size of the media timeline box a tiny bit

Had this staged and meant to amend 8e3e068d75, as it makes the media
controls look a bit more balanced in size, but forgot to actually
commit.
This commit is contained in:
Timothy Flynn 2023-06-22 14:20:26 -04:00
parent 8e3e068d75
commit 3dac2f7e58
Notes: sideshowbarker 2024-07-17 03:03:37 +09:00

View file

@ -80,7 +80,7 @@ MediaPaintable::Components MediaPaintable::compute_control_bar_components(PaintC
auto remaining_rect = components.control_box_rect;
remaining_rect.shrink(component_padding * 2, 0);
auto timeline_rect_height = context.rounded_device_pixels(10);
auto timeline_rect_height = context.rounded_device_pixels(8);
if ((timeline_rect_height * 3) <= components.control_box_rect.height()) {
components.timeline_rect = components.control_box_rect;
components.timeline_rect.set_height(timeline_rect_height);