mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
warae
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useEffect, useMemo, useState } from 'react';
|
||||
import { useSession } from '../context/SessionContext.jsx';
|
||||
import { useSettingsNamespace } from '../settings/index.js';
|
||||
import { roverNameChromeStyle, roverSwatchStyle } from '../lib/roverColor.js';
|
||||
import { roverNameChromeStyle } from '../lib/roverColor.js';
|
||||
|
||||
function normalizeSources(list = []) {
|
||||
return list
|
||||
@@ -145,13 +145,6 @@ function GroupList({ title, items, selected, onToggle }) {
|
||||
onChange={() => onToggle(item.key)}
|
||||
className="accent-emerald-400"
|
||||
/>
|
||||
{item.type === 'rover' && item.color ? (
|
||||
<span
|
||||
className="inline-block h-2 w-2 rounded-full border border-white/30"
|
||||
style={roverSwatchStyle(item.color)}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
) : null}
|
||||
<span
|
||||
className={`truncate ${item.type === 'rover' ? 'rounded px-1 py-[1px] border border-transparent' : ''}`}
|
||||
style={item.type === 'rover' ? roverNameChromeStyle(item.color, 0.16) : undefined}
|
||||
|
||||
Reference in New Issue
Block a user