mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
Fix missing tooltip in table side panel editor
This commit is contained in:
1 parent
8a50ba6b45
commit
08ca63ba97
1 file changed
+26
-17
+26
-17
@@ -17,6 +17,7 @@ import {
|
||||
DroppableProvided,
|
||||
DraggableProvided,
|
||||
} from 'react-beautiful-dnd'
|
||||
import * as Tooltip from '@radix-ui/react-tooltip'
|
||||
|
||||
import Column from './Column'
|
||||
import InformationBox from 'components/ui/InformationBox'
|
||||
@@ -192,29 +193,37 @@ const ColumnManagement: FC<Props> = ({
|
||||
{/* Drag handle */}
|
||||
{isNewRecord && <div className="w-[5%]" />}
|
||||
<div className="w-[25%]">
|
||||
<h5 className="text-xs text-scale-900" small>
|
||||
Name
|
||||
</h5>
|
||||
<h5 className="text-xs text-scale-900">Name</h5>
|
||||
</div>
|
||||
<div className="w-[25%]">
|
||||
<h5 className="text-xs text-scale-900" small>
|
||||
Type
|
||||
</h5>
|
||||
<h5 className="text-xs text-scale-900">Type</h5>
|
||||
</div>
|
||||
<div className={`${isNewRecord ? 'w-[25%]' : 'w-[30%]'} flex items-center space-x-2`}>
|
||||
<h5 className="text-xs text-scale-900" small>
|
||||
Default Value
|
||||
</h5>
|
||||
<div>
|
||||
<h5 className="text-xs text-scale-900">
|
||||
<IconHelpCircle size={15} strokeWidth={1.5} />
|
||||
</h5>
|
||||
</div>
|
||||
<h5 className="text-xs text-scale-900">Default Value</h5>
|
||||
|
||||
<Tooltip.Root delayDuration={0}>
|
||||
<Tooltip.Trigger>
|
||||
<h5 className="text-xs text-scale-900">
|
||||
<IconHelpCircle size={15} strokeWidth={1.5} />
|
||||
</h5>
|
||||
</Tooltip.Trigger>
|
||||
<Tooltip.Content side="bottom">
|
||||
<Tooltip.Arrow className="radix-tooltip-arrow" />
|
||||
<div
|
||||
className={[
|
||||
'bg-scale-100 shadow py-1 px-2 rounded leading-none', // background
|
||||
'border border-scale-200 ', //border
|
||||
].join(' ')}
|
||||
>
|
||||
<span className="text-scale-1200 text-xs">
|
||||
Can be either a value or a SQL expression
|
||||
</span>
|
||||
</div>
|
||||
</Tooltip.Content>
|
||||
</Tooltip.Root>
|
||||
</div>
|
||||
<div className="w-[10%]">
|
||||
<h5 className="text-xs text-scale-900" small>
|
||||
Primary
|
||||
</h5>
|
||||
<h5 className="text-xs text-scale-900">Primary</h5>
|
||||
</div>
|
||||
{/* Empty space */}
|
||||
<div className={`${hasImportContent ? 'w-[10%]' : 'w-0'}`} />
|
||||
|
||||
Reference in new issue
Block a user