Seed templates

This commit is contained in:
1ilit
2024-02-28 22:47:07 +02:00
parent d3625dd980
commit 141b303e50
12 changed files with 2218 additions and 1604 deletions

View File

@@ -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 ? (

View File

@@ -125,7 +125,7 @@ export function Thumbnail({ diagram, i, zoom }) {
)}
fill="none"
strokeWidth={1}
stroke="gray"
stroke="#ddd"
/>
))}
{diagram.notes?.map((n) => {