Skip to content

Commit f808b2e

Browse files
committed
fix: add missing memoryRerankerToggle style (light + dark mode)
The toggle button class was referenced in the TSX but not defined in the Less file, causing it to render as a bare unstyled button. This commit adds the style definition with hover/active states for both light and dark mode.
1 parent e56d11b commit f808b2e

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

console/src/pages/Agent/Config/index.module.less

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,32 @@
806806
}
807807
}
808808

809+
.memoryRerankerToggle {
810+
display: flex;
811+
align-items: center;
812+
justify-content: center;
813+
width: 28px;
814+
height: 28px;
815+
margin-left: auto;
816+
padding: 0;
817+
border: none;
818+
border-radius: 6px;
819+
background: transparent;
820+
color: rgba(20, 20, 19, 0.35);
821+
cursor: pointer;
822+
transition: background 0.2s, color 0.2s;
823+
flex-shrink: 0;
824+
825+
&:hover {
826+
background: rgba(20, 20, 19, 0.06);
827+
color: rgba(20, 20, 19, 0.6);
828+
}
829+
830+
&:active {
831+
background: rgba(20, 20, 19, 0.1);
832+
}
833+
}
834+
809835
.memorySettingRow {
810836
display: flex;
811837
align-items: center;
@@ -1363,6 +1389,19 @@
13631389
background: rgba(255, 255, 255, 0.035);
13641390
}
13651391

1392+
.memoryRerankerToggle {
1393+
color: rgba(255, 255, 255, 0.35);
1394+
1395+
&:hover {
1396+
background: rgba(255, 255, 255, 0.08);
1397+
color: rgba(255, 255, 255, 0.6);
1398+
}
1399+
1400+
&:active {
1401+
background: rgba(255, 255, 255, 0.12);
1402+
}
1403+
}
1404+
13661405
.memoryOverviewItem {
13671406
border-right-color: rgba(255, 255, 255, 0.08);
13681407

0 commit comments

Comments
 (0)