@@ -188,6 +188,7 @@ local function worker(user_args)
188
188
local play_icon = args .play_icon or path_to_icons .. " /symbolic/actions/media-playback-start-symbolic.svg"
189
189
local stop_icon = args .stop_icon or path_to_icons .. " /symbolic/actions/media-playback-stop-symbolic.svg"
190
190
local library_icon = args .library_icon or path_to_icons .. " /symbolic/places/folder-music-symbolic.svg"
191
+ local popup_width = args .popup_width or 300
191
192
192
193
local icon = wibox .widget {
193
194
widget = wibox .widget .imagebox ,
@@ -230,15 +231,15 @@ local function worker(user_args)
230
231
local cover_art_widget = wibox .widget {
231
232
widget = wibox .widget .imagebox ,
232
233
forced_height = 0 ,
233
- forced_width = 300 ,
234
+ forced_width = popup_width ,
234
235
resize_allowed = true ,
235
236
}
236
237
237
238
local metadata_widget = wibox .widget {
238
239
widget = wibox .widget .textbox ,
239
240
font = font ,
240
241
forced_height = 100 ,
241
- forced_width = 300 ,
242
+ forced_width = popup_width ,
242
243
}
243
244
244
245
local update_metadata = function (meta )
@@ -253,7 +254,7 @@ local function worker(user_args)
253
254
254
255
if art_url ~= nil and art_url ~= " " then
255
256
cover_art_widget .image = art_url
256
- cover_art_widget .forced_height = 300
257
+ cover_art_widget .forced_height = popup_width
257
258
else
258
259
cover_art_widget .image = nil
259
260
cover_art_widget .forced_height = 0
0 commit comments