fixup: don't apply padding to empty components
This commit is contained in:
parent
f850cb6776
commit
7bd381c68b
|
@ -276,8 +276,10 @@ function M:draw(default_highlight, is_focused)
|
||||||
end
|
end
|
||||||
if type(status) == 'string' and (#status > 0 or self.options.draw_empty) then
|
if type(status) == 'string' and (#status > 0 or self.options.draw_empty) then
|
||||||
self.status = status
|
self.status = status
|
||||||
self:apply_icon()
|
if #status > 0 then
|
||||||
self:apply_padding()
|
self:apply_icon()
|
||||||
|
self:apply_padding()
|
||||||
|
end
|
||||||
self:apply_on_click()
|
self:apply_on_click()
|
||||||
self:apply_highlights(default_highlight)
|
self:apply_highlights(default_highlight)
|
||||||
self:apply_section_separators()
|
self:apply_section_separators()
|
||||||
|
|
Loading…
Reference in New Issue