From ef7bced02862ba571a595472b37a4de08853f8d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Tue, 24 Mar 2026 00:12:47 +0100 Subject: [PATCH] osc.lua: make title wider in floating layout We don't put anything else on title line, so we don't need reserved space as with other layouts. --- player/lua/osc.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/player/lua/osc.lua b/player/lua/osc.lua index a4da2fbff9..3d10c12fdf 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -2038,13 +2038,12 @@ layouts["floating"] = function () -- Title row (optional) if show_title then lo = add_layout("title") - local title_reserved = 160 lo.geometry = {x = x - half_w, y = tile_pos, an = 4, - w = half_w * 2 - title_reserved, h = title_h} + w = half_w * 2, h = title_h} lo.style = string.format("%s{\\clip(%f,%f,%f,%f)}", osc_styles.vidtitle, - x - half_w, tile_pos - title_h, x + half_w - title_reserved, tile_pos + title_h) - lo.button.maxchars = user_opts.boxmaxchars + x - half_w, tile_pos - title_h, x + half_w, tile_pos + title_h) + lo.button.maxchars = 105 end -- Seekbar row