fix: magnet text area max size #413

This commit is contained in:
Daan Wijns 2022-05-08 10:03:52 +02:00
parent 982360eb03
commit 4dd81f7cd4

View file

@ -87,6 +87,7 @@
<v-textarea <v-textarea
v-if="files.length == 0" v-if="files.length == 0"
v-model="urls" v-model="urls"
style="max-height: 200px; overflow-x: hidden; overflow-y: auto"
:label="$t('url')" :label="$t('url')"
:prepend-icon="mdiLink" :prepend-icon="mdiLink"
rows="1" rows="1"
@ -233,7 +234,7 @@ export default {
if (f.type) return f.type === 'application/x-bittorrent' if (f.type) return f.type === 'application/x-bittorrent'
else return /^.*\.torrent$/.test(f.name) else return /^.*\.torrent$/.test(f.name)
}) })
return result ? result : this.$i18n.t('modals.add.oneOrMoreFilesInvalidTorrent') return result ? result : this.$i18n.t('modals.add.oneOrMoreFilesInvalidTorrent')
} }
], ],
@ -354,4 +355,4 @@ export default {
color: #fff; color: #fff;
padding: 0; padding: 0;
} }
</style> </style>