Skip to content

Allow placing the widget sidebar on the left side of the workspace #3283

@mackenzieclark

Description

@mackenzieclark

Summary

The widget sidebar (custom widgets from widgets.json) is hardcoded to the right edge of the workspace. There's no setting to move it to the left, even for users who already use app:tabbar: "left" and would prefer chrome consolidated on one side.

Current behavior

In frontend/app/workspace/workspace.tsx:160-164, the layout is fixed by source order:

<div className="flex flex-row h-full">
    <TabContent key={tabId} tabId={tabId} noTopPadding={showLeftTabBar && isMacOS()} />
    {widgetsSidebarVisible && <Widgets />}
</div>

There's no equivalent of app:tabbar (which already supports "top" / "left") for the widget sidebar.

Related: tooltip popovers inside frontend/app/workspace/widgets.tsx hardcode placement: "left-start" / placement: "left" (e.g. lines 79, 141, 262, 480, 494, 519, 540) on the assumption that the bar lives at the right screen edge. Those would need to flip to right placement when the bar is on the left.

Request

Please add a setting — e.g. app:widgetbar: "right" | "left" (default "right") — that controls which side of the tab content the widget sidebar appears on, with tooltip placement adapting accordingly.

This pairs naturally with app:tabbar: "left": users who put the tab bar on the left often want the widget bar adjacent to it (or deliberately on the opposite side), not stranded across the screen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions