Skip to content

Commit 7af0b3c

Browse files
committed
fix: rename input styling
1 parent 1ebf331 commit 7af0b3c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

apps/postgres-new/components/schema/table-node.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { PopoverClose } from '@radix-ui/react-popover'
21
import { AnimatePresence, m } from 'framer-motion'
32
import {
43
CircleSlash,
@@ -23,15 +22,14 @@ import {
2322
} from 'reactflow'
2423
import {
2524
DropdownMenu,
26-
DropdownMenuItem,
2725
DropdownMenuContent,
28-
DropdownMenuTrigger,
26+
DropdownMenuItem,
2927
DropdownMenuSeparator,
28+
DropdownMenuTrigger,
3029
} from '~/components/ui/dropdown-menu'
3130
import { cn } from '~/lib/utils'
3231
import { useApp } from '../app-provider'
3332
import { useWorkspace } from '../workspace'
34-
import { rename } from 'fs'
3533

3634
// ReactFlow is scaling everything by the factor of 2
3735
export const TABLE_NODE_WIDTH = 640
@@ -385,7 +383,7 @@ function TableColumn({
385383
>
386384
<input
387385
name="name"
388-
className="flex-grow border-none focus-visible:ring-0 text-base bg-inherit placeholder:text-neutral-400"
386+
className="flex-grow p-2 outline-none text-base bg-inherit placeholder:text-neutral-400"
389387
placeholder={`Rename ${column.name}`}
390388
// when esc is pressed, setIsRenaming(false) is called
391389
onKeyDown={(e) => {

apps/postgres-new/components/sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ function DatabaseMenuItem({ database, isActive }: DatabaseMenuItemProps) {
316316
open={isPopoverOpen}
317317
>
318318
<DropdownMenuTrigger
319-
className="group/trigger"
319+
className="group/trigger outline-none"
320320
onClick={(e) => {
321321
e.preventDefault()
322322
setIsPopoverOpen(true)
@@ -356,7 +356,7 @@ function DatabaseMenuItem({ database, isActive }: DatabaseMenuItemProps) {
356356
>
357357
<input
358358
name="name"
359-
className="flex-grow w-full border-none focus-visible:ring-0 text-base bg-inherit placeholder:text-neutral-400"
359+
className="flex-grow w-full p-2 outline-none text-base bg-inherit placeholder:text-neutral-400"
360360
placeholder={`Rename ${database.name}`}
361361
defaultValue={database.name ?? undefined}
362362
autoComplete="off"

0 commit comments

Comments
 (0)