Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Fix recording positioning #27152

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@
border-width: 0;
border-top-width: 1px;
flex-wrap: wrap;

justify-content: center;
}

& [data-desktop] {
Expand Down
7 changes: 5 additions & 2 deletions apps/meteor/app/ui-message/client/messageBox/messageBox.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
{{> Template.dynamic template=customAction.template data=customAction.data }}
{{ else }}
{{#if canSend}}
{{> AudioMessageRecorder rid=rid tmid=tmid }}
<span class="rc-message-box__action-menu js-action-menu" data-desktop aria-haspopup="true" data-qa-id="menu-more-actions">
{{#if actions}}
<span class="rc-message-box__icon">
Expand All @@ -55,7 +54,11 @@
</span>
{{/each}}
</span>

{{#if canSend}}
<div class="rc-message-box__audio-message">
{{> AudioMessageRecorder rid=rid tmid=tmid }}
</div>
{{/if}}
<span class="rc-message-box__send js-message-action js-send" disabled="{{isSendIconDisabled}}" data-small>
{{> icon block="rc-message-box__action" icon="send"}}
</span>
Expand Down
4 changes: 3 additions & 1 deletion apps/meteor/client/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,6 @@ createTemplateForComponent('loggedOutBanner', () => import('../ee/client/compone
renderContainerView: () => HTML.DIV({ style: 'max-width: 520px; margin: 0 auto;' }),
});

createTemplateForComponent('AudioMessageRecorder', () => import('./views/composer/AudioMessageRecorder'));
createTemplateForComponent('AudioMessageRecorder', () => import('./views/composer/AudioMessageRecorder'), {
attachment: 'at-parent',
});