This commit is contained in:
2026-06-19 11:21:31 +02:00
parent b3194e66e2
commit 003871b089
12 changed files with 46 additions and 103 deletions
+4 -4
View File
@@ -1,11 +1,11 @@
[[plugin.deps]]
use = "yazi-rs/plugins:git"
rev = "598cdb6"
rev = "b9946d9"
hash = "88e56a64b7ce7c4314427452343fef17"
[[plugin.deps]]
use = "yazi-rs/plugins:smart-enter"
rev = "598cdb6"
rev = "b9946d9"
hash = "187cc58ba7ac3befd49c342129e6f1b6"
[[plugin.deps]]
@@ -25,8 +25,8 @@ hash = "5c7802a9ac249be88729978e3b9525bc"
[[plugin.deps]]
use = "Rolv-Apneseth/starship"
rev = "a837101"
hash = "635b0feb9215772d22020eb0abf0bb34"
rev = "159eaba"
hash = "7de446280b1ba8c49ffd86dbc24bbbe6"
[flavor]
deps = []
@@ -71,7 +71,7 @@ local old_build = Tab.build
Tab.build = function(self, ...)
local bar = function(c, x, y)
if x <= 0 or x == self._area.w - 1 then
return ui.Bar(ui.Edge.TOP):area(ui.Rect.default)
return ui.Bar(ui.Edge.TOP)
end
return ui.Bar(ui.Edge.TOP)
@@ -87,15 +87,15 @@ Tab.build = function(self, ...)
local c = self._chunks
self._chunks = {
c[1]:pad(ui.Pad.y(1)),
c[2]:pad(ui.Pad(1, c[3].w > 0 and 0 or 1, 1, c[1].w > 0 and 0 or 1)),
c[2]:pad(ui.Pad.y(1)),
c[3]:pad(ui.Pad.y(1)),
}
self._base = ya.list_merge(self._base or {}, {
bar("", c[1].right - 1, c[1].y),
bar("", c[1].right - 1, c[1].bottom - 1),
bar("", c[2].right, c[2].y),
bar("", c[2].right, c[2].bottom - 1),
bar("", c[2].x, c[1].y),
bar("", c[2].x, c[1].bottom - 1),
bar("", c[2].right - 1, c[2].y),
bar("", c[2].right - 1, c[2].bottom - 1),
})
old_build(self, ...)