This commit is contained in:
legop3
2026-03-23 03:53:59 -04:00
parent e311e67fc9
commit 463bd89dd8
4 changed files with 36 additions and 14 deletions
+7 -2
View File
@@ -1,7 +1,7 @@
import { useEffect, useMemo, useState } from 'react';
import { useSession } from '../context/SessionContext.jsx';
import { useSettingsNamespace } from '../settings/index.js';
import { roverSwatchStyle } from '../lib/roverColor.js';
import { roverNameChromeStyle, roverSwatchStyle } from '../lib/roverColor.js';
function normalizeSources(list = []) {
return list
@@ -152,7 +152,12 @@ function GroupList({ title, items, selected, onToggle }) {
aria-hidden="true"
/>
) : null}
<span className="truncate">{item.label}</span>
<span
className={`truncate ${item.type === 'rover' ? 'rounded px-1 py-[1px] border border-transparent' : ''}`}
style={item.type === 'rover' ? roverNameChromeStyle(item.color, 0.16) : undefined}
>
{item.label}
</span>
</label>
))}
</div>