fix(sidebar): replace expansion icons with plain CSS triangles
This commit is contained in:
parent
308a790412
commit
262fdc4ad4
|
|
@ -3168,7 +3168,7 @@ window.__ModuleLoader__.load({
|
|||
children: [
|
||||
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
||||
className: `wgChevron${node.expanded ? " wgChevronOpen" : ""}`,
|
||||
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconTriangleRightFillMedium, {})
|
||||
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { "aria-hidden": true, style: { display: "block", width: 0, height: 0, borderTop: "4px solid transparent", borderBottom: "4px solid transparent", borderLeft: "5px solid currentColor" } })
|
||||
}),
|
||||
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
||||
className: "wgCategoryIcon",
|
||||
|
|
@ -3290,7 +3290,7 @@ window.__ModuleLoader__.load({
|
|||
children: [
|
||||
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
||||
className: `wgChevron${node.expanded ? " wgChevronOpen" : ""}`,
|
||||
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconTriangleRightFillMedium, {})
|
||||
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { "aria-hidden": true, style: { display: "block", width: 0, height: 0, borderTop: "4px solid transparent", borderBottom: "4px solid transparent", borderLeft: "5px solid currentColor" } })
|
||||
}),
|
||||
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
||||
className: "wgCategoryIcon",
|
||||
|
|
@ -3403,7 +3403,7 @@ window.__ModuleLoader__.load({
|
|||
children: [
|
||||
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
||||
className: `wgChevron${node.expanded ? " wgChevronOpen" : ""}`,
|
||||
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconTriangleRightFillMedium, {})
|
||||
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { "aria-hidden": true, style: { display: "block", width: 0, height: 0, borderTop: "4px solid transparent", borderBottom: "4px solid transparent", borderLeft: "5px solid currentColor" } })
|
||||
}),
|
||||
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
||||
className: "wgCategoryIcon",
|
||||
|
|
|
|||
|
|
@ -70,7 +70,6 @@ import {
|
|||
IconSlidersTwoOutlineRegular,
|
||||
IconSparkleMedium,
|
||||
IconTreeCornerMedium,
|
||||
IconTriangleRightFillMedium,
|
||||
IconTrashOutlineRegular,
|
||||
IconUsersOutlineMedium,
|
||||
IconWorkspaceTreeOutlineMedium,
|
||||
|
|
@ -298,7 +297,7 @@ export function CategoryRow({ node, t, onToggle, onAddWorkspace, addingWorkspace
|
|||
onDrop={onRowDrop}
|
||||
>
|
||||
<span className={`wgChevron${node.expanded ? ' wgChevronOpen' : ''}`}>
|
||||
<IconTriangleRightFillMedium />
|
||||
<span aria-hidden="true" style={{ display: 'block', width: 0, height: 0, borderTop: '4px solid transparent', borderBottom: '4px solid transparent', borderLeft: '5px solid currentColor' }} />
|
||||
</span>
|
||||
<span className="wgCategoryIcon" data-wg-row-icon="group">
|
||||
<CategoryGlyph
|
||||
|
|
@ -426,7 +425,7 @@ export function WorkspaceRow({ node, t, onToggle, onNewSession, onRename, onDele
|
|||
onDrop={onRowDrop}
|
||||
>
|
||||
<span className={`wgChevron${node.expanded ? ' wgChevronOpen' : ''}`}>
|
||||
<IconTriangleRightFillMedium />
|
||||
<span aria-hidden="true" style={{ display: 'block', width: 0, height: 0, borderTop: '4px solid transparent', borderBottom: '4px solid transparent', borderLeft: '5px solid currentColor' }} />
|
||||
</span>
|
||||
<span className="wgCategoryIcon" data-wg-row-icon="project">
|
||||
{/* Project rows use the project glyph (same as the official workspace
|
||||
|
|
@ -538,7 +537,7 @@ export function FolderRow({ node, t, onToggle, onNewSession, onSetRoot, onRemove
|
|||
onClick={onToggle}
|
||||
>
|
||||
<span className={`wgChevron${node.expanded ? ' wgChevronOpen' : ''}`}>
|
||||
<IconTriangleRightFillMedium />
|
||||
<span aria-hidden="true" style={{ display: 'block', width: 0, height: 0, borderTop: '4px solid transparent', borderBottom: '4px solid transparent', borderLeft: '5px solid currentColor' }} />
|
||||
</span>
|
||||
<span className="wgCategoryIcon" data-wg-row-icon="folder">
|
||||
{node.expanded ? <IconFolderOpenMedium /> : <IconFolderCloseMedium />}
|
||||
|
|
|
|||
Loading…
Reference in New Issue