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 <richard@steinmetz.cloud>
  • Loading branch information
st3iny committed Aug 21, 2024
1 parent da7cc68 commit e9e9bcf
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>

Check warning on line 72 in src/components/Editor/Attachments/AttachmentsList.vue

View check run for this annotation

Codecov / codecov/patch

src/components/Editor/Attachments/AttachmentsList.vue#L69-L72

Added lines #L69 - L72 were not covered by tests
</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 e9e9bcf

Please sign in to comment.