Skip to content

Commit

Permalink
Merge pull request #6277 from nextcloud/backport/6274/stable4.7
Browse files Browse the repository at this point in the history
[stable4.7] fix(attachments): improve layout
  • Loading branch information
miaulalala authored Aug 21, 2024
2 parents 49e1c3a + b4f95a0 commit 6bd3f37
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 @@ -60,8 +60,11 @@

<NcDialog :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 @@ -221,7 +224,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 @@ -314,4 +318,8 @@ export default {
height: 24px;
border-radius: var(--border-radius);
}
.external-link-message {
overflow-wrap: break-word;
}
</style>

0 comments on commit 6bd3f37

Please sign in to comment.