Skip to content

Commit

Permalink
fix(Quote): restrict overflow content for quotes / replies
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Mar 26, 2024
1 parent 8f51c37 commit 5c76d10
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions src/components/NewMessage/NewMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,7 @@ export default {
&__input {
flex-grow: 1;
position: relative;
min-width: 0;
}

// Override NcRichContenteditable styles
Expand Down
32 changes: 16 additions & 16 deletions src/components/Quote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,16 @@ components.
<p dir="auto">{{ shortenedQuoteMessage }}</p>
</blockquote>
</div>
<div v-if="canCancel" class="quote__main__right">
<NcButton type="tertiary"
:aria-label="cancelQuoteLabel"
@click="handleAbort">
<template #icon>
<Close :size="20" />
</template>
</NcButton>
</div>

<NcButton v-if="canCancel"
class="quote__close"
type="tertiary"
:aria-label="cancelQuoteLabel"
@click="handleAbort">
<template #icon>
<Close :size="20" />
</template>
</NcButton>
</a>
</template>

Expand Down Expand Up @@ -297,6 +298,7 @@ export default {
border-radius: var(--border-radius-large);
border: 2px solid var(--color-border);
background-color: var(--color-main-background);
overflow: hidden;

&::before {
content: ' ';
Expand Down Expand Up @@ -343,13 +345,11 @@ export default {
gap: 4px;
}
}
&__right {
flex: 0 0 44px;
color: var(--color-text-maxcontrast);
font-size: 13px;
padding: 0 8px 0 8px;
position: relative;
margin: auto;

&__close {
position: absolute !important;
top: 4px;
right: 4px;
}
}

Expand Down

0 comments on commit 5c76d10

Please sign in to comment.