unsloth/studio
Michael Han c689dc586a
Chat UI polish: template editor reset, circular action button hovers (#6151)
* Chat template: restore the preview box with a smaller font

Bring back the template preview under the Chat Template label at 10px
instead of 13px, clamped to four lines. The label is a plain span
again; the preview box and the edit icon open the editor.

* Circular hover for chat action buttons; smaller template edit icon

- Message action bar buttons (copy, retry, delete, more) and the
  branch picker chevrons hover as circles instead of 10px rectangles
- The three dot button next to sidebar chats gets the same circular
  hover and open state
- Chat template pencil icon drops from 14px to 12px

* Chat template: drop the preview box, add Reset to the editor dialog

- Remove the template preview under the Chat Template label; the row
  is just the label with the revert and edit icons
- The Apply and Reset buttons in the panel no longer trigger on
  template-only changes, they remain for model settings that need a
  reload
- The editor dialog gets a Reset button that restores the default
  template in the draft, disabled when the draft already matches

* Sidebar: Gemini-style row vs action hover; clickable template label

- Hovering the 3 dot action next to a chat shows only the action's
  hover circle; the row pill highlight is suppressed while the action
  is hovered and applies only when hovering the row itself
- Chat Template label opens the editor and the gap below the row is
  slightly tighter

* Plus menu More submenu styling and order; sidebar action contrast

- The More submenu was missing the unsloth-plus-menu class, so its
  items hovered with the green accent instead of the shared grey
- Saved prompts moves above Compare chat
- Opening the 3 dot menu no longer highlights the whole chat row, only
  the action circle; the circle is a step darker than the row hover so
  the two read separately
- Panel icon buttons (template pencil, revert) hover as circles

* Chat template: confirm saves with a toast

Template-only edits no longer surface the panel Apply button, so a
saved override sat pending with no indicator. Saving now shows a toast
stating the change applies on the next model reload, with a separate
message when the save clears the override.

* Chat welcome: raise the greeting block to 27.5vh

* Composer: tighten trailing padding on caret pills

The RAG and MCP pills end in a chevron that carries its own
whitespace, so their hover pill looked over padded on the right.
Pills with a caret drop from 10px to 6px right padding; label only
pills keep the wider padding.

* Compact RAG and MCP pills open their menu instead of toggling off

When the composer collapses pills to icons, the RAG and MCP glyph is
the whole button, so its turn-off click handler made the menu
unreachable. In compact mode the glyph click now falls through to the
dropdown trigger, and the hover X swap is skipped since the click no
longer turns the pill off. Full size pills keep the icon-as-off-switch
behavior.

* Compact pills: name tooltip on hover; pill shaped tooltips

- Collapsed composer icons (Search, Code, Images, Fetch, Canvas, RAG,
  MCP) show their name in a hover tooltip via data-pill-label, since
  the label itself is hidden in compact mode
- Tooltips (.tooltip-compact and the new pill tooltip) are rounded
  pills instead of 10px rectangles

* System prompt edit icon and reset; soft borderless dialogs

- System Prompt section header gets the same pencil icon as Chat
  Template, opening the prompt editor; CollapsibleSection grows an
  optional headerAction slot so the icon is not a button inside the
  toggle button
- The prompt editor dialog gets a Reset button that clears the draft,
  disabled when already empty
- All dialogs swap the border for a shared dialog-soft-surface class:
  borderless with the chatbox shadow in light mode, flat card surface
  with no shadow in dark mode

* Editor dialogs: borderless text areas

The system prompt and chat template textareas drop their border to
match the borderless dialog surface; the soft fill alone defines the
input area.

* System prompt: tighten the gap between the header and the text box
2026-06-10 09:22:39 -07:00
..
backend Studio: fall back to text-only when llama.cpp is too old for a model's vision projector (#6075) 2026-06-10 08:58:39 -07:00
frontend Chat UI polish: template editor reset, circular action button hovers (#6151) 2026-06-10 09:22:39 -07:00
src-tauri feat(studio): Hub + Download Manager (#5916) 2026-06-09 04:11:24 -07:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
install_llama_prebuilt.py Source llama.cpp prebuilts from unslothai/llama.cpp (CUDA, ROCm, macOS) (#5963) 2026-06-10 08:49:57 -07:00
install_python_stack.py Fix UnboundLocalError in ROCm version detection dpkg/rpm fallback (#6149) 2026-06-10 08:10:55 -07:00
LICENSE.AGPL-3.0 Add AGPL-3.0 license to studio folder 2026-03-09 19:36:25 +00:00
package-lock.json ci: advisory lockfile supply-chain audit (no install-script changes) (#5604) 2026-05-19 05:56:56 -07:00
package.json ci: advisory lockfile supply-chain audit (no install-script changes) (#5604) 2026-05-19 05:56:56 -07:00
setup.bat Final cleanup 2026-03-12 18:28:04 +00:00
setup.ps1 Source llama.cpp prebuilts from unslothai/llama.cpp (CUDA, ROCm, macOS) (#5963) 2026-06-10 08:49:57 -07:00
setup.sh Source llama.cpp prebuilts from unslothai/llama.cpp (CUDA, ROCm, macOS) (#5963) 2026-06-10 08:49:57 -07:00
Unsloth_Studio_Colab.ipynb Fix/studio colab proxy and iframe - Unsloth Studio not loading in Colab (iframe "refused to connect" and wrong URL) (#5844) 2026-05-28 23:54:48 -07:00