fix(files): unify context menu trigger on mobile and desktop (#396)

* refactor: use explicit menu button for file row context menu

* fix: ensure model variants are computed from current source only
This commit is contained in:
gsxdsm
2026-02-12 09:52:13 +02:00
committed by GitHub
parent 82a2da47bb
commit b9d2142b1e
2 changed files with 21 additions and 29 deletions
@@ -522,7 +522,7 @@ export const ModelControls: React.FC<ModelControlsProps> = ({
// currentProviderId/currentModelId; include providers to avoid stale variants.
const availableVariants = React.useMemo(() => {
return getCurrentModelVariants();
}, [getCurrentModelVariants, currentProviderId, currentModelId, providers]);
}, [getCurrentModelVariants]);
const hasVariants = availableVariants.length > 0;
const costRows = [