mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08:00
Seed templates
This commit is contained in:
@@ -95,12 +95,12 @@ export default function Table(props) {
|
||||
>
|
||||
<div className="px-3">
|
||||
{isHovered
|
||||
? props.tableData.name.length < 10
|
||||
? props.tableData.name.length <= 10
|
||||
? props.tableData.name
|
||||
: `${props.tableData.name.substring(0, 10)}...`
|
||||
: props.tableData.name.length < 16
|
||||
: props.tableData.name.length <= 18
|
||||
? props.tableData.name
|
||||
: `${props.tableData.name.substring(0, 16)}...`}
|
||||
: `${props.tableData.name.substring(0, 19)}...`}
|
||||
</div>
|
||||
{isHovered && (
|
||||
<div className="flex justify-end items-center mx-2">
|
||||
@@ -1275,9 +1275,9 @@ export default function Table(props) {
|
||||
}));
|
||||
}}
|
||||
></button>
|
||||
{fieldData.name.length < 10
|
||||
{fieldData.name.length <= 11
|
||||
? fieldData.name
|
||||
: fieldData.name.substring(0, 10)}
|
||||
: fieldData.name.substring(0, 11)}
|
||||
</div>
|
||||
<div className="text-zinc-400">
|
||||
{hoveredField === index ? (
|
||||
|
||||
@@ -125,7 +125,7 @@ export function Thumbnail({ diagram, i, zoom }) {
|
||||
)}
|
||||
fill="none"
|
||||
strokeWidth={1}
|
||||
stroke="gray"
|
||||
stroke="#ddd"
|
||||
/>
|
||||
))}
|
||||
{diagram.notes?.map((n) => {
|
||||
|
||||
Reference in New Issue
Block a user