Skip to content
Snippets Groups Projects
Commit 9b745695 authored by ml bonhomme's avatar ml bonhomme :bee: Committed by Erwan Rouchet
Browse files

Truncate a bunch of potentially long strings in modals

parent 1e792e6b
No related branches found
No related tags found
1 merge request!1546Truncate a bunch of potentially long strings in modals
......@@ -382,7 +382,7 @@
:disabled="!pickedFolder || null"
v-on:click="performMove"
>
Move {{ element.name }}
Move {{ truncateShort(element.name) }}
</button>
</template>
</Modal>
......@@ -473,7 +473,7 @@ import {
import { NAVIGATION_PAGE_SIZES } from '@/config'
import { manifestUri, uvUri, miradorUri, createProcessRedirect } from '@/helpers'
import { corporaMixin } from '@/mixins'
import { corporaMixin, truncateMixin } from '@/mixins'
import { useDisplayStore } from '@/stores'
import Modal from '@/components/Modal'
......@@ -484,7 +484,8 @@ import DeleteResultsModal from '@/components/Process/Workers/DeleteResultsModal'
export default {
mixins: [
corporaMixin
corporaMixin,
truncateMixin
],
components: {
Modal,
......
......@@ -126,4 +126,13 @@ input.input[type=number] {
height: 0.95em;
width: 0.95em;
border: 1px solid gray;
}
\ No newline at end of file
}
.modal-card-title {
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
flex-shrink: 1;
overflow: hidden;
word-break: break-all;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment