mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #14982] [MERGED] fix: Replace Inline SVGs with Icon Components and Convert Links to Buttons #62524
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/14982
Author: @silentoplayz
Created: 6/14/2025
Status: ✅ Merged
Merged: 6/16/2025
Merged by: @tjbck
Base:
dev← Head:fix-drag📝 Commits (3)
9ccb9a8fix: Prevent draggable links for Admin Panel & Playground in UserMenu4fd7bferefac: Icon files for UserMenu6e8c6e2fix: select-none w-full📊 Changes
6 files changed (+103 additions, -83 deletions)
View changed files
➕
src/lib/components/icons/Code.svelte(+19 -0)➕
src/lib/components/icons/Settings.svelte(+20 -0)➕
src/lib/components/icons/SignOut.svelte(+16 -0)➕
src/lib/components/icons/UserGroup.svelte(+19 -0)📝
src/lib/components/layout/Navbar/Menu.svelte(+9 -9)📝
src/lib/components/layout/Sidebar/UserMenu.svelte(+20 -74)📄 Description
Pull Request Checklist
Before submitting, make sure you`ve checked the following:
devbranch.Changelog Entry
Description
src/lib/components/layout/Sidebar/UserMenu.svelteto enhance maintainability and consistency by replacing inline SVG icons with dedicated Svelte icon components. This change improves code readability and reususability. Additionally, administrative navigation links were converted to buttons with programmatic navigation, and minor user experience improvements were applied to dropdown menu item behavior.Added
Settings,Code,UserGroup, andSignOut.Changed
Settings.svelte,Code.svelte,UserGroup.svelte,SignOut.svelte).<a>tags to<button>elements, updating their navigation to use thegoto()function from$app/navigationfor consistent behavior.select-none,w-full, andtransitionfor improved visual consistency and user interaction.show = false;) upon click.Additional Information
<a>to<button>for Playground and Admin Panel provides more semantic HTML for interactive elements within a dropdown menu, aligning better with accessibility practices for controls that trigger actions rather than navigate directly viahref.Screenshots or Videos
What this PR fixes:
https://github.com/user-attachments/assets/a21f38e5-d112-4726-8a2f-444995b4a511
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.