Skip to content

Commit fb3a676

Browse files
committed
chore: wip
1 parent c4dce31 commit fb3a676

File tree

1 file changed

+7
-2
lines changed
  • storage/framework/defaults/views/dashboard/models

1 file changed

+7
-2
lines changed

storage/framework/defaults/views/dashboard/models/index.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ const createDiagram = () => {
407407
408408
const width = diagramContainer.value.clientWidth
409409
const height = 1200 // Further increased height for better vertical spacing
410-
const cardWidth = 310 // Card width defined here for consistent reference
410+
const cardWidth = 356
411411
412412
// Clear existing visualization
413413
d3.select(diagramContainer.value).selectAll('*').remove()
@@ -507,7 +507,7 @@ const createDiagram = () => {
507507
'subscriberEmail': { x: width * 0.8, y: 800 },
508508
509509
// Fourth row - better distributed with more horizontal spacing
510-
'deployment': { x: width * 0.1, y: 1100 },
510+
'deployment': { x: width * 0.05, y: 1100 },
511511
'release': { x: width * 0.35, y: 1100 },
512512
'orderItem': { x: width * 0.65, y: 1100 }
513513
}
@@ -671,6 +671,7 @@ const createDiagram = () => {
671671
.attr('dominant-baseline', 'middle') // Improved vertical alignment
672672
.attr('fill', prop.name === 'id' ? '#FCD34D' : '#E5E7EB')
673673
.attr('font-size', '14px')
674+
.attr('font-family', 'monospace')
674675
.text(prop.name)
675676
676677
// Property type
@@ -681,6 +682,7 @@ const createDiagram = () => {
681682
.attr('text-anchor', 'end')
682683
.attr('fill', '#9CA3AF')
683684
.attr('font-size', '14px')
685+
.attr('font-family', 'monospace')
684686
.text(prop.type)
685687
686688
// Nullable indicator - improved spacing from edge
@@ -691,6 +693,7 @@ const createDiagram = () => {
691693
.attr('text-anchor', 'middle')
692694
.attr('fill', prop.nullable ? '#EF4444' : '#10B981')
693695
.attr('font-size', '14px')
696+
.attr('font-family', 'monospace')
694697
.text(prop.nullable ? 'N' : 'U')
695698
})
696699
@@ -748,6 +751,7 @@ const createDiagram = () => {
748751
.attr('fill', bgColor)
749752
.attr('font-size', '16px')
750753
.attr('font-weight', 'bold')
754+
.attr('font-family', 'monospace')
751755
.text(rel.type + ':')
752756
753757
// Related model - improved vertical alignment
@@ -758,6 +762,7 @@ const createDiagram = () => {
758762
.attr('fill', '#FFFFFF')
759763
.attr('font-size', '16px')
760764
.attr('font-weight', 'medium')
765+
.attr('font-family', 'monospace')
761766
.text(rel.model)
762767
})
763768
}

0 commit comments

Comments
 (0)