feat: enhance compose functionality with button integration and translations

This commit is contained in:
Linus Rath
2026-03-28 22:53:10 +01:00
parent 1ba8e2fd47
commit 8d7cd26fa9
4 changed files with 33 additions and 28 deletions
+1 -14
View File
@@ -12,7 +12,6 @@ import {
Star,
Trash2,
Archive,
PenSquare,
ChevronsLeft,
ChevronsRight,
ChevronRight,
@@ -762,19 +761,7 @@ export function Sidebar({
{!isCollapsed && <PluginSlot name="sidebar-widget" className="border-t border-border" />}
</div>
{/* Compose Button */}
<div className={cn("border-t border-border", isCollapsed ? "flex justify-center py-3" : "px-3 py-3")}>
{isCollapsed ? (
<Button onClick={onCompose} variant="ghost" size="icon" title={t("compose_hint")} data-tour="compose-button">
<PenSquare className="w-5 h-5" />
</Button>
) : (
<Button onClick={onCompose} className="w-full" title={t("compose_hint")} data-tour="compose-button">
<PenSquare className="w-4 h-4 mr-2" />
{t("compose")}
</Button>
)}
</div>
</div>
);
}