Skip to content

Commit

Permalink
Merge pull request #14059 from nextcloud/fix/noid/rich-content-overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Antreesy authored Dec 30, 2024
2 parents 80ca854 + 1ae5aba commit 8876415
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/NewMessage/NewMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,9 @@ export default {
}

.new-message-form {
--emoji-button-size: calc(var(--default-clickable-area) - var(--border-width-input-focused, 2px) * 2);
--emoji-button-radius: calc(var(--border-radius-element, calc(var(--button-size) / 2)) - var(--border-width-input-focused, 2px));

align-items: flex-end;
display: flex;
gap: var(--default-grid-baseline);
Expand All @@ -1047,8 +1050,8 @@ export default {

:deep(.button-vue) {
// Overwrite NcButton styles to fit inside NcRichContenteditable
--button-size: calc(var(--default-clickable-area) - var(--border-width-input-focused, 2px) * 2) !important;
--button-radius: calc(var(--border-radius-element, calc(var(--button-size) / 2)) - var(--border-width-input-focused, 2px)) !important;
--button-size: var(--emoji-button-size) !important;
--button-radius: var(--emoji-button-radius) !important;
}
}

Expand All @@ -1061,10 +1064,9 @@ export default {
// Override NcRichContenteditable styles
:deep(.rich-contenteditable__input) {
--contenteditable-space: calc((var(--default-clickable-area) - 1lh - 4px) / 2);
border-radius: var(--border-radius-element, calc(var(--default-clickable-area) / 2));
padding: var(--contenteditable-space);
padding-left: calc(var(--contenteditable-space) + var(--default-clickable-area));
max-height: 180px;
--contenteditable-block-offset: var(--contenteditable-space);
--contenteditable-inline-end-offset: var(--contenteditable-space);
--contenteditable-inline-start-offset: calc(var(--emoji-button-size) + var(--contenteditable-space));
}

&__quote {
Expand Down

0 comments on commit 8876415

Please sign in to comment.