Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: keep media backend choices usable on touch screens

Adam Eivy6ad358a51de6
diff --git a/client/src/components/media/BackendChipStrip.jsx b/client/src/components/media/BackendChipStrip.jsx
index dbcf5aafd2..1504da48ef 100644
--- a/client/src/components/media/BackendChipStrip.jsx
+++ b/client/src/components/media/BackendChipStrip.jsx
@@ -22,7 +22,7 @@ export default function BackendChipStrip({
if (!availableBackends?.length) return null;
const sizeCls = SIZES[size] || SIZES.md;
return (
- <div className="inline-flex items-center gap-1 p-0.5 border border-port-border rounded-full bg-port-bg" role="group" aria-label={ariaLabel}>
+ <div className="inline-flex max-w-full flex-wrap items-center gap-1 p-0.5 border border-port-border rounded-3xl bg-port-bg" role="group" aria-label={ariaLabel}>
{availableBackends.map(({ id, label, icon: Icon }) => {
const isLoading = loadingId === id;
const isSelected = value === id;
@@ -33,11 +33,11 @@ export default function BackendChipStrip({
onClick={() => onChange?.(id)}
disabled={disabled}
aria-busy={isLoading || undefined}
- className={`inline-flex items-center gap-1 rounded-full transition-colors disabled:opacity-50 ${sizeCls} ${isSelected ? 'bg-port-accent text-white' : 'text-gray-400 hover:text-white hover:bg-port-border/40'}`}
+ className={`inline-flex min-h-[44px] min-w-[44px] max-w-full items-center justify-center gap-1 rounded-full transition-colors disabled:opacity-50 ${sizeCls} ${isSelected ? 'bg-port-accent text-white' : 'text-gray-400 hover:text-white hover:bg-port-border/40'}`}
title={isLoading ? `Checking ${label}…` : `${titlePrefix} ${label}`}
>
- {isLoading ? <Loader2 className="w-3 h-3 animate-spin" /> : <Icon className="w-3 h-3" />}
- {label}
+ {isLoading ? <Loader2 className="w-3 h-3 shrink-0 animate-spin" /> : <Icon className="w-3 h-3 shrink-0" />}
+ <span className="min-w-0 break-words">{label}</span>
</button>
);
})}