Skip to content

Commit

Permalink
Merge pull request #6276 from nextcloud/backport/6274/stable5.0
Browse files Browse the repository at this point in the history
[stable5.0] fix(attachments): improve layout
  • Loading branch information
miaulalala authored Aug 21, 2024
2 parents bdfcf5d + 9f2c9e9 commit be8a971
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 be8a971

Please sign in to comment.