mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-12-21 01:07:24 +08:00
Fix table names taking half of the table width when not hovered
This commit is contained in:
@@ -85,10 +85,11 @@ export default function Table(props) {
|
|||||||
settings.mode === "light" ? "bg-zinc-200" : "bg-zinc-900"
|
settings.mode === "light" ? "bg-zinc-200" : "bg-zinc-900"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<div className="px-3 overflow-hidden text-ellipsis whitespace-nowrap">
|
<div className=" px-3 overflow-hidden text-ellipsis whitespace-nowrap">
|
||||||
{props.tableData.name}
|
{props.tableData.name}
|
||||||
</div>
|
</div>
|
||||||
<div className="invisible group-hover:visible flex justify-end items-center mx-2">
|
<div className="hidden group-hover:block">
|
||||||
|
<div className="flex justify-end items-center mx-2">
|
||||||
<Button
|
<Button
|
||||||
icon={<IconEdit />}
|
icon={<IconEdit />}
|
||||||
size="small"
|
size="small"
|
||||||
@@ -198,6 +199,7 @@ export default function Table(props) {
|
|||||||
</Popover>
|
</Popover>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{props.tableData.fields.map((e, i) => {
|
{props.tableData.fields.map((e, i) => {
|
||||||
return settings.showFieldSummary ? (
|
return settings.showFieldSummary ? (
|
||||||
<Popover
|
<Popover
|
||||||
|
|||||||
Reference in New Issue
Block a user