Skip to content

Commit

Permalink
chore: Layout fixes after upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
timonback committed Jun 2, 2023
1 parent 8db6e42 commit c665a04
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion springwolf-ui/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<app-header></app-header>
<main class="flex-column gap-24">
<main class="flex-column">
<app-info></app-info>
<app-servers></app-servers>
<app-channels></app-channels>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ button {
font-weight: normal;
}

.button-container {
height: 50px;
}

[hidden] {
display: none !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h4>{{ operation.message.description }}</h4>
<mat-tab-group animationDuration="0ms">
<mat-tab label="Example">
<div class="flex-column">
<div [hidden]="isEmptyObject(operation.message.bindings.get(protocolName))" class="flex-column gap-5">
<div [hidden]="isEmptyObject(operation.message.bindings.get(protocolName))" class="flex-column">
<h4>Message Binding</h4>
<textarea spellcheck="false"
#bindingTextArea
Expand All @@ -16,7 +16,7 @@ <h4>Message Binding</h4>
(keyup)="recalculateLineCount('massageBindingExample', bindingTextArea.value)"
></textarea>
</div>
<div [hidden]="!(headersExample?.lineCount > 1)" class="flex-column gap-5">
<div [hidden]="!(headersExample?.lineCount > 1)" class="flex-column">

<h4>Header</h4>
<textarea spellcheck="false"
Expand All @@ -27,7 +27,7 @@ <h4>Header</h4>
></textarea>

</div>
<div class="flex-column gap-5">
<div class="flex-column">
<h4>Message</h4>
<textarea spellcheck="false"
#messageTextArea
Expand All @@ -36,7 +36,7 @@ <h4>Message</h4>
(keyup)="recalculateLineCount('example', messageTextArea.value)"
></textarea>
</div>
<div class="flex gap-8">
<div class="button-container flex gap-8">
<button mat-raised-button color="primary"
(click)="publish(messageTextArea.value, headersTextArea?.value, bindingTextArea?.value)">
Publish
Expand Down
4 changes: 3 additions & 1 deletion springwolf-ui/src/app/servers/servers.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<h1>Servers</h1>
<mat-card appearance="outlined" *ngFor="let server of servers | keyvalue">
<mat-card-title>{{ server.key }}</mat-card-title>
<mat-card-header>
<mat-card-title>{{ server.key }}</mat-card-title>
</mat-card-header>
<mat-card-content>
{{ server.value.url }}
</mat-card-content>
Expand Down
3 changes: 0 additions & 3 deletions springwolf-ui/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
.flex { display: flex; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.gap-0 { gap: 0px; }
.gap-5 { gap: 5px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.space-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
Expand Down

0 comments on commit c665a04

Please sign in to comment.