Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/components/gui/query-result-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,26 +51,26 @@ function Header({
const colIndex = header.index;

let textClass = "grow line-clamp-1 font-mono font-bold";
let thClass = "flex grow items-center px-2 overflow-hidden";
let thClass = "flex grow items-center overflow-hidden";

if (internalState.getSelectedColIndex().includes(colIndex)) {
if (internalState.isFullSelectionCol(colIndex)) {
textClass =
"grow line-clamp-1 font-mono font-bold text-black dark:text-white font-bold";
thClass =
"flex grow items-center px-2 overflow-hidden bg-neutral-100 dark:bg-neutral-900";
"flex grow items-center overflow-hidden bg-neutral-100 dark:bg-neutral-900";
} else {
textClass =
"grow line-clamp-1 font-mono font-bold dark:text-white font-bold";
thClass =
"flex grow items-center px-2 overflow-hidden bg-neutral-100 dark:bg-neutral-900";
"flex grow items-center overflow-hidden bg-neutral-100 dark:bg-neutral-900";
}
}

return (
<div className={thClass}>
<div className={thClass + ' px-2'}>
<div
className={thClass}
className={thClass + ' pe-2'}
onMouseDown={(e) => {
if (e.button === 2) {
setOpen(true);
Expand All @@ -96,7 +96,7 @@ function Header({
/>
</div>
) : null}
<div className={textClass}>{header.display.text}</div>
<div className={textClass + ' text-ellipsis'}>{header.display.text}</div>
</div>
<div>
<DropdownMenu modal={false} onOpenChange={setOpen} open={open}>
Expand Down
Loading