Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(attachments): improve layout #6274

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
}

// 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 @@
height: 24px;
border-radius: var(--border-radius);
}

.external-link-message {
overflow-wrap: break-word;
}
</style>
Loading