Skip to content

Commit

Permalink
fix reply button in post bar
Browse files Browse the repository at this point in the history
  • Loading branch information
asliayk committed Nov 19, 2024
1 parent 485e048 commit 9f255f2
Showing 1 changed file with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<div class="d-flex flex-wrap gap-2 fs-xx-small align-items-center">
<div class="d-flex flex-wrap gap-2 fs-xx-small align-items-center" style="width: max-content">
@if (hoverBar && sortedAnswerPosts.length === 0) {
<div>
<button class="reaction-button clickable reply-btn" (click)="isCommunicationPage ? openThread.emit() : openAnswerView()">
<fa-icon class="fa-xs align-self-center" [icon]="faArrowRight" />
<span jhiTranslate="artemisApp.conversationsLayout.threadSideBar.reply" class="emoji-count px-2"></span>
</button>
</div>
}
@if (!isCommunicationPage) {
@if (sortedAnswerPosts.length) {
<!-- collapse answers -->
Expand All @@ -25,15 +33,6 @@
}
} @else {
@if (!isThreadSidebar) {
<!-- start discussion -->
@if (hoverBar && sortedAnswerPosts.length === 0) {
<div>
<button class="reaction-button clickable reply-btn" (click)="openThread.emit()">
<fa-icon class="fa-xs align-self-center" [icon]="faArrowRight" />
<span jhiTranslate="artemisApp.conversationsLayout.threadSideBar.reply" class="emoji-count px-2"></span>
</button>
</div>
}
<!-- expand answers -->
@if (!showAnswers && sortedAnswerPosts.length) {
<div>
Expand Down Expand Up @@ -134,7 +133,7 @@
}
</div>
<div>
@if (getShowNewMessageIcon()) {
@if (isEmojiCount && getShowNewMessageIcon()) {
<div jhiTranslate="global.generic.new" class="badge bg-secondary hideAfter5Seconds"></div>
}
</div>
Expand Down

0 comments on commit 9f255f2

Please sign in to comment.