Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions noice/lua/noice/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ body:not(.vertical) .tab:nth-child(even) {
background: none;
color: var(--noice-muted);
border-radius: 5px;
padding: 3px 14px 3px 10px;
padding: 3px 12px;
}
body:not(.vertical) .tab.selected {
background: var(--noice-selected);
Expand All @@ -91,7 +91,9 @@ body:not(.vertical) .tab.selected {
}
body:not(.vertical) .tab.pinned:not(.selected) { background: none; color: var(--pinned-fg); }
/* A pinned tab shrunk to its icon (tabs.pinned.shrink) keeps riptide's width. */
body:not(.vertical) .tab.shrunk { flex: 0 0 auto; padding: 3px 10px; }
body:not(.vertical) .tab.shrunk { flex: 0 0 auto; padding: 3px 8px; }
/* The dot only while loading or failed, so an idle tab's room is even. */
body:not(.vertical) .tab:not(.loading):not(.error) .indicator { display: none; }
body:not(.vertical) .tab .indicator {
width: 6px;
height: 6px;
Expand Down
2 changes: 1 addition & 1 deletion noice/test/noice_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe("noice", function()
it("refuses an accent that isn't a color", function()
clear_messages()
noice().setup({ accent = "red; } body { display: none" })
assert.falsy(noice().css():find("display: none", 1, true))
assert.falsy(noice().css():find("red; } body", 1, true))
wait_until(function() return (last_message() or ""):find("accent is a CSS color", 1, true) ~= nil end)
end)

Expand Down
Loading