Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
rabeatwork committed Feb 18, 2025
1 parent ee3d319 commit 040ff65
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@
.envelope {
text-align: center;
opacity: 0.75;
height: 250px;
padding-top: 100px;
padding-bottom: 100px;
margin-top: auto;
margin-bottom: auto;
}

.conversation-messages-message-list.is-fetching-posts {
Expand Down Expand Up @@ -116,7 +115,10 @@ jhi-posting-thread {
}

.channel-content {
height: calc(100vh - 15px - var(--header-height) - var(--message-input-height-dev) - var(--channel-header-height));
height: calc(100vh - 1rem - var(--header-height) - var(--message-input-height-dev) - var(--channel-header-height));
@include media-breakpoint-down(md) {

Check notice on line 119 in src/main/webapp/app/overview/course-conversations/layout/conversation-messages/conversation-messages.component.scss

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/main/webapp/app/overview/course-conversations/layout/conversation-messages/conversation-messages.component.scss#L119

Expected empty line before at-rule (at-rule-empty-line-before)

Check warning on line 119 in src/main/webapp/app/overview/course-conversations/layout/conversation-messages/conversation-messages.component.scss

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/main/webapp/app/overview/course-conversations/layout/conversation-messages/conversation-messages.component.scss#L119

Unexpected unknown at-rule "@include" (at-rule-no-unknown)
height: calc(100vh - var(--header-height) - var(--message-input-height-dev) - var(--channel-header-height));
}
display: flex;

Check notice on line 122 in src/main/webapp/app/overview/course-conversations/layout/conversation-messages/conversation-messages.component.scss

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/main/webapp/app/overview/course-conversations/layout/conversation-messages/conversation-messages.component.scss#L122

Expected empty line before declaration (declaration-empty-line-before)
flex-direction: column;
justify-content: space-between;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,7 @@
<fa-icon [icon]="faQuestionCircle" [ngbTooltip]="'artemisApp.markdownEditor.guide' | artemisTranslate" />
</a>
@if (editType !== EditType.UPDATE) {
<button
jhi-posting-button
[buttonIcon]="faPaperPlane"
[buttonLabel]="'artemisApp.conversationsLayout.sendMessage' | artemisTranslate"
[buttonLoading]="isButtonLoading"
[disabled]="isButtonLoading || !isFormGroupValid"
class="ms-1 col-auto btn btn-sm btn-outline-secondary"
id="save"
type="submit"
></button>
<ng-container [ngTemplateOutlet]="sendButton" [ngTemplateOutletContext]="{ extraClass: 'ms-1 col-auto', testId: 'save' }" />
}
</div>
}
Expand Down Expand Up @@ -84,16 +75,8 @@
}
</ng-content>
@if (editType !== EditType.UPDATE) {
<button
jhi-posting-button
[buttonIcon]="faPaperPlane"
[buttonLabel]="'artemisApp.conversationsLayout.sendMessage' | artemisTranslate"
[buttonLoading]="isButtonLoading"
[disabled]="isButtonLoading || !isFormGroupValid"
class="float-end btn btn-sm btn-outline-secondary"
id="save"
type="submit"
></button>
<!-- <ng-container *ngTemplateOutlet="sendButton; context: {text: 'hallo'}" /> -->
<ng-container [ngTemplateOutlet]="sendButton" [ngTemplateOutletContext]="{ extraClass: 'float-end' }" />
}
</div>
</ng-template>
Expand Down Expand Up @@ -289,3 +272,17 @@
<ng-template #noItemsAvailable>
<button class="ps-1 me-1" mat-button [disabled]="true" jhiTranslate="global.generic.emptyList" type="button"></button>
</ng-template>

<ng-template #sendButton let-extraClass="extraClass" let-testId="testId">
<button
jhi-posting-button
[buttonIcon]="faPaperPlane"
[buttonLabel]="'artemisApp.conversationsLayout.sendMessage' | artemisTranslate"
[buttonLoading]="isButtonLoading"
[disabled]="isButtonLoading || !isFormGroupValid"
class="btn btn-sm btn-outline-secondary"
[ngClass]="extraClass ?? ''"
id="testId ?? ''"
type="submit"
></button>
</ng-template>

0 comments on commit 040ff65

Please sign in to comment.