Skip to content

Commit

Permalink
fix(attachments): improve layout
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny authored and backportbot[bot] committed Aug 21, 2024
1 parent bdfcf5d commit 9f2c9e9
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/components/Editor/Attachments/AttachmentsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@
<NcDialog v-if="showOpenConfirmation"
:open.sync="showOpenConfirmation"
:name="t('calendar', 'Confirmation')"
:message="openConfirmationMessage"
:buttons="openConfirmationButtons" />
:buttons="openConfirmationButtons">
<p class="external-link-message">
{{ openConfirmationMessage }}
</p>
</NcDialog>
</div>
</template>

Expand Down Expand Up @@ -231,7 +234,8 @@ export default {
}
// Otherwise, show a confirmation dialog
this.openConfirmationMessage = t('calendar', 'You are about to navigate to an untrusted external link. Are you sure to proceed? Link: {link}', {
this.openConfirmationMessage = t('calendar', 'You are about to navigate to {host}. Are you sure to proceed? Link: {link}', {
host: url.host,
link: url.href,
})
this.openConfirmationButtons = [
Expand Down Expand Up @@ -324,4 +328,8 @@ export default {
height: 24px;
border-radius: var(--border-radius);
}
.external-link-message {
overflow-wrap: break-word;
}
</style>

0 comments on commit 9f2c9e9

Please sign in to comment.