mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-06-05 10:11:12 +02:00
refactor: simplify new tab menu item copy
- Change menu text from "+ New tab" to "New" (icon already shows +) - Simplify toast to just "Moved to new tab" https://claude.ai/code/session_01Hy2vYBooPyrF7ZJCodcCav
This commit is contained in:
@@ -64,8 +64,8 @@ export function WindowToolbar({
|
||||
|
||||
const handleMoveToNewTab = () => {
|
||||
if (!window) return;
|
||||
const newTabNumber = moveWindowToNewWorkspace(window.id);
|
||||
toast.success(`Moved to new tab ${newTabNumber}`);
|
||||
moveWindowToNewWorkspace(window.id);
|
||||
toast.success("Moved to new tab");
|
||||
};
|
||||
|
||||
const handleEdit = () => {
|
||||
@@ -210,7 +210,8 @@ export function WindowToolbar({
|
||||
</DropdownMenuSubTrigger>
|
||||
<DropdownMenuSubContent>
|
||||
<DropdownMenuItem onClick={handleMoveToNewTab}>
|
||||
<Plus className="size-4 mr-2" />+ New tab
|
||||
<Plus className="size-4 mr-2" />
|
||||
New
|
||||
</DropdownMenuItem>
|
||||
{otherWorkspaces.length > 0 && <DropdownMenuSeparator />}
|
||||
{otherWorkspaces.map((ws) => (
|
||||
|
||||
Reference in New Issue
Block a user