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.
This commit is contained in:
Kacper Michajłow committed 2026-03-24 19:24:49 +01:00
1 parent f42480d0cc
commit ef7bced028
1 file changed
+3 -4
+3 -4
View File
@@ -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