Skip to content

Commit 0040622

Browse files
committed
:chore: Highlight corresponding cell when hovering (#1822)
1 parent d92d68d commit 0040622

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/components/TaskTables/TaskTable.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
}
6565
6666
function getBodyCellClasses(contestId: string, taskIndex: string): string {
67-
const baseClasses = 'w-1/2 xs:w-1/3 sm:w-1/4 md:w-1/5 lg:w-1/6 px-1 py-1 border';
67+
const baseClasses =
68+
'w-1/2 xs:w-1/3 sm:w-1/4 md:w-1/5 lg:w-1/6 px-1 py-1 border hover:brightness-125 transition-all';
6869
const backgroundColor = getBackgroundColor(taskTable[contestId][taskIndex]);
6970
7071
return `${baseClasses} ${backgroundColor}`;

0 commit comments

Comments
 (0)