feat: New button label instead of the + icon in the dock

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
FactorandClaude Sonnet 5.5 committed 2026-11-19 17:56:45 +01:00
1 parent 7e23b8a79c
commit bb86c74995
1 file changed
+6 -6
@@ -1366,19 +1366,19 @@ export default class Composer extends View {
renderAddButton(t, active) {
const icon = div()
.id("composer-dock-add")
.size(28)
.rounded(999)
.h(28)
.px(11)
.rounded(8)
.flex_none()
.flex()
.items_center()
.justify_center()
.bg(t.chrome)
.text_size(15)
.text_size(12)
.text_color(active ? t.muted : t.dim)
.cursor_pointer()
.hover((s) => s.bg(t.hover).text_color(t.foreground))
.tooltip("Dodaj przycisk do docka")
.child("+");
.child("New button");
if (!active) return icon;
const open = this.contextMenu?.kind === "add";
return Popover.new("composer-dock-add-menu")
@@ -3042,7 +3042,7 @@ export default class Composer extends View {
if (this.dock.length === 0) {
return row
.child(add)
.child(div().flex_none().text_size(12).text_color(t.dim).child("Plus lub prawy klik w Ulubionych → Przypnij do docka"));
.child(div().flex_none().text_size(12).text_color(t.dim).child("„New button” lub prawy klik w Ulubionych → Przypnij do docka"));
}
return row.children([add, ...this.dock.map((button) => this.renderDockButton(t, button, active))]);
}