Skip to content

Commit

Permalink
small UI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vwh committed Aug 11, 2024
1 parent 25743ba commit c198a9f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/components/table/repl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ export default function SqlRepl() {
setCustomQuery(sqlFormat(customQuery));
}, [queryHistory]);

useEffect(() => {
console.log(customQuery);
}, [customQuery]);

const myCompletions = useCallback((context: CompletionContext) => {
const word = context.matchBefore(/\w*/);
if (!word || (word.from === word.to && !context.explicit)) return null;
Expand Down
4 changes: 3 additions & 1 deletion src/components/table/table-data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ const TableHeadCell: React.FC<{
<HoverCard>
<HoverCardTrigger asChild>
<div className="flex cursor-pointer items-center space-x-1">
<span>{columnName}</span>
<span className="max-w-[200px] overflow-hidden truncate text-ellipsis whitespace-nowrap">
{columnName}
</span>
{columnSchema && <ColumnIcon columnSchema={columnSchema} />}
</div>
</HoverCardTrigger>
Expand Down
4 changes: 2 additions & 2 deletions src/components/table/table-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default function DBTable() {

const renderQueryInput = useMemo(
() => (
<div className="flex flex-col gap-2 md:flex-row">
<div className="flex flex-col gap-1 md:flex-row">
<div className="flex-grow">
<SqlRepl />
</div>
Expand Down Expand Up @@ -152,7 +152,7 @@ export default function DBTable() {
return (
<div className="flex flex-col gap-3 pb-8">
<section className="rounded-lg bg-gray-100 p-4 shadow-sm dark:bg-gray-700">
<div className="mb-[5px] flex items-center justify-between gap-2">
<div className="mb-[5px] flex items-center justify-between gap-1">
<TableSelect />
<div className="flex items-center justify-center gap-1">
<ExportButtons />
Expand Down

0 comments on commit c198a9f

Please sign in to comment.