Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message_edit: Use display: grid instead of relative positioning.

Shubham Padia7a0a71b7d16a
diff --git a/web/styles/message_row.css b/web/styles/message_row.css
index d218799936a..4332696f458 100644
--- a/web/styles/message_row.css
+++ b/web/styles/message_row.css
@@ -655,7 +655,6 @@
}
.edit-content-container {
- position: relative;
border-radius: 4px;
border: 1px solid var(--color-message-content-container-border);
transition: border 0.2s ease;
@@ -663,6 +662,10 @@
&:has(.message_edit_content:focus) {
border-color: var(--color-message-content-container-border-focus);
}
+
+ .message-edit-textbox {
+ position: relative;
+ }
}
.message_edit_content {
diff --git a/web/templates/message_edit_form.hbs b/web/templates/message_edit_form.hbs
index 0e9ac39fbd5..931478ae1f6 100644
--- a/web/templates/message_edit_form.hbs
+++ b/web/templates/message_edit_form.hbs
@@ -4,10 +4,12 @@
<form id="edit_form_{{message_id}}">
<div class="edit_form_banners"></div>
<div class="edit-controls edit-content-container {{#if is_editable}}surround-formatting-buttons-row{{/if}}">
- <span class="copy_message copy-btn copy-btn-square tippy-zulip-tooltip" data-tippy-content="{{t 'Copy and close' }}" aria-label="{{t 'Copy and close' }}" role="button">
- <i class="zulip-icon zulip-icon-copy" aria-hidden="true"></i>
- </span>
- <textarea class="message_edit_content" maxlength="{{ max_message_length }}">{{content}}</textarea>
+ <div class="message-edit-textbox">
+ <span class="copy_message copy-btn copy-btn-square tippy-zulip-tooltip" data-tippy-content="{{t 'Copy and close' }}" aria-label="{{t 'Copy and close' }}" role="button">
+ <i class="zulip-icon zulip-icon-copy" aria-hidden="true"></i>
+ </span>
+ <textarea class="message_edit_content" maxlength="{{ max_message_length }}">{{content}}</textarea>
+ </div>
<div class="scrolling_list preview_message_area" id="preview_message_area_{{message_id}}" style="display:none;">
<div class="markdown_preview_spinner"></div>
<div class="preview_content rendered_markdown"></div>