mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
fix(file-manager): preserve selected backgrounds on hover (#1473)
* fix(ci): build plugin SDK before dependent checks * fix(mysql): keep plugin settings scope indexes within limits * test(mysql): refresh reviewed plugin upgrade SQL * fix(file-manager): preserve selection feedback on hover * test(ui): await dialog focus cleanup before teardown
This commit is contained in:
1 parent
8192886a69
commit
5e02e30d0f
3 files changed
+10
-4
No files matched your search
@@ -1232,7 +1232,7 @@ export function FileManagerGrid({
|
||||
"group flex flex-col items-center rounded-none border-2 border-transparent transition-all cursor-pointer hover:bg-muted/50 select-none",
|
||||
compact ? "p-1.5" : "p-3",
|
||||
isSelected &&
|
||||
"bg-accent-brand/10 border-accent-brand/40",
|
||||
"bg-accent-brand/10 hover:bg-accent-brand/10 border-accent-brand/40",
|
||||
dragState.target?.path === file.path &&
|
||||
"bg-accent-brand/20 border-accent-brand border-dashed",
|
||||
dragState.files.some(
|
||||
@@ -1443,7 +1443,8 @@ export function FileManagerGrid({
|
||||
compact
|
||||
? "px-2 py-1 text-[11px]"
|
||||
: "px-4 py-2 text-xs",
|
||||
isSelected && "bg-accent-brand/10",
|
||||
isSelected &&
|
||||
"bg-accent-brand/10 hover:bg-accent-brand/10",
|
||||
dragState.target?.path === file.path &&
|
||||
"bg-accent-brand/20 border-accent-brand border-dashed",
|
||||
dragState.files.some((f) => f.path === file.path) &&
|
||||
|
||||
@@ -1001,7 +1001,8 @@ export function LocalFilePane({
|
||||
style={rowStyle}
|
||||
className={cn(
|
||||
"grid gap-2 px-3 items-center text-xs cursor-default border-b border-border hover:bg-muted/50 rounded-none select-none transition-colors h-[34px]",
|
||||
isSelected && "bg-accent-brand/10",
|
||||
isSelected &&
|
||||
"bg-accent-brand/10 hover:bg-accent-brand/10",
|
||||
isFolderTarget &&
|
||||
"bg-accent-brand/20 outline outline-1 outline-dashed outline-accent-brand",
|
||||
entry.hidden && "opacity-60",
|
||||
|
||||
@@ -39,7 +39,11 @@ import {
|
||||
NewApiKeyDialog,
|
||||
} from "../../sidebar/UserProfilePanel";
|
||||
|
||||
afterEach(cleanup);
|
||||
afterEach(async () => {
|
||||
cleanup();
|
||||
// Radix restores focus on a timer; let it finish before jsdom is torn down.
|
||||
await new Promise<void>((resolve) => setTimeout(resolve, 0));
|
||||
});
|
||||
|
||||
function renderSection(hidden: boolean, open = false, onToggle = vi.fn()) {
|
||||
render(
|
||||
|
||||
Reference in new issue
Block a user