mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #17941] [MERGED] feat: Implement toggling for vertical and horizontal flow layouts #11408
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/17941
Author: @silentoplayz
Created: 9/30/2025
Status: ✅ Merged
Merged: 10/2/2025
Merged by: @tjbck
Base:
dev← Head:vertical-and-horizontal-overview📝 Commits (1)
80cbdbbfeat: Implement toggling for vertical and horizontal flow layouts📊 Changes
2 files changed (+34 additions, -11 deletions)
View changed files
📝
src/lib/components/chat/Overview.svelte(+15 -8)📝
src/lib/components/chat/Overview/Flow.svelte(+19 -3)📄 Description
Pull Request Checklist
devbranch.Changelog Entry
Description
This pull request introduces the functionality to switch between vertical and horizontal layouts for the chat overview flow diagram. It also refactors the flow drawing logic to accommodate different directions, making the visualization more flexible.
Added
setLayoutDirectionfunction inOverview.svelteto change the layout.Overview/Flow.svelteusingControlButtonfrom@xyflow/sveltefor switching between vertical and horizontal layouts.BarsArrowUpandBars3BottomLefticons for layout controls.Changed
drawFlowinOverview.svelteto accept adirectionparameter and calculate node positions (levelOffset,siblingOffset,x,y) based on whether the layout is 'vertical' or 'horizontal'.layoutDirectionstate variable inOverview.svelte, defaulted to 'vertical'.setLayoutDirectionfunction as a prop toOverview/Flow.svelte.Additional Information
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.