Skip to content

Commit

Permalink
feature(api-console-gui): show the route description with white-space…
Browse files Browse the repository at this point in the history
…:pre-wrap to respect the newlines the developer used in description for formatting (#421)
  • Loading branch information
colorcube committed Apr 12, 2023
1 parent 05247ae commit 058f090
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ import { getTypeJitContainer } from '@deepkit/type';
</div>
<div style="margin-top: 10px; flex: 2 1 auto;">
<label>Description</label>
{{route.description || 'none'}}
<div class="formatted-text">{{route.description || 'none'}}</div>
</div>
</div>
</deepkit-box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h3>Could not load API information</h3>
</div>
<div style="margin-top: 10px; flex: 2 1 auto;">
<label>Description</label>
{{route.description || 'none'}}
<div class="formatted-text">{{route.description || 'none'}}</div>
</div>
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions packages/api-console-gui/src/app/views/view-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,7 @@
flex: 0 0 50%;
}
}

.formatted-text {
white-space: pre-wrap;
}

0 comments on commit 058f090

Please sign in to comment.