Skip to content

Commit

Permalink
Add maxHeight to SDD diagrams to allow growth (#109)
Browse files Browse the repository at this point in the history
custom.css has a default maxHeight relative to viewport size, which
makes these diagrams squished when they have a width set.
If the width is removed, the diagrams are too small to view.
Setting the maxHeight style here lets them size themselves more
naturally.

Co-authored-by: Andrea Connell <[email protected]>
  • Loading branch information
andreamconnell and Andrea Connell authored Jan 16, 2024
1 parent 64c10da commit 4834ea9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/overview/software-design-document.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ A](#a---the-c4-model).
import c4AerieContext from './assets/c4-aerie-context.png';

<figure>
<img alt="Aerie Context" src={c4AerieContext} width="512" />
<img alt="Aerie Context" src={c4AerieContext} style={{ maxHeight: '100%', width: '700px' }} />
<figcaption>Figure 1: Aerie Context</figcaption>
</figure>

Expand Down Expand Up @@ -119,7 +119,7 @@ merlin-worker has a direct connection to the merlin database.
import c4AerieContainer from './assets/c4-aerie-container.png';

<figure>
<img alt="Aerie Container" src={c4AerieContainer} width="700" />
<img alt="Aerie Container" src={c4AerieContainer} style={{ maxHeight: '100%', width: '700px' }} />
<figcaption>Figure 2: Aerie Composition at the Container Level</figcaption>
</figure>

Expand Down Expand Up @@ -408,7 +408,7 @@ defining mission models in a file system.
import c4MerlinServerComponent from './assets/c4-merlin-server-component.png';

<figure>
<img alt="Merlin Server Component" src={c4MerlinServerComponent} width="700" />
<img alt="Merlin Server Component" src={c4MerlinServerComponent} style={{ maxHeight: '100%', width: '700px' }} />
<figcaption>Figure 3: The Component Diagram for Merlin Server</figcaption>
</figure>

Expand Down Expand Up @@ -1299,7 +1299,7 @@ aspects:
import c4SchedulingComponent from './assets/c4-scheduling-component.png';

<figure>
<img alt="Scheduling Component" src={c4SchedulingComponent} width="400" />
<img alt="Scheduling Component" src={c4SchedulingComponent} style={{ maxHeight: '100%', width: '400px' }} />
<figcaption>Figure 4: The Aerie Scheduling Component</figcaption>
</figure>

Expand Down

0 comments on commit 4834ea9

Please sign in to comment.