fix [P-273]: При переполнении описания добавлять полосу прокрутки

This commit is contained in:
Denis Voinovich committed 2025-06-17 14:21:51 +03:00
1 parent 122bd67052
commit 2001c03820
1 file changed
+50
@@ -15,6 +15,7 @@
:rules="[rules.required]"
label="Описание"
variant="outlined"
class="scrollable-textarea"
></v-textarea>
</div>
<div v-if="!isTest" class="pt-2 d-flex align-center">
@@ -183,5 +184,54 @@ export default {
</script>
<style scoped>
.scrollable-textarea :deep(.v-field__field) {
overflow-y: auto !important;
max-height: 300px !important;
}
.scrollable-textarea :deep(textarea) {
max-height: none !important;
}
.scrollable-textarea :deep(::-webkit-scrollbar) {
width: 14px !important;
}
.scrollable-textarea :deep(::-webkit-scrollbar-track) {
background-color: #f1f1f1 !important;
border-radius: 8px !important;
}
.scrollable-textarea :deep(::-webkit-scrollbar-thumb) {
background-color: #004D40 !important;
border-radius: 8px !important;
border: 2px solid #f1f1f1 !important;
}
.scrollable-textarea :deep(::-webkit-scrollbar-thumb:hover) {
background-color: #00796B !important;
}
.scrollable-textarea :deep(textarea)::-webkit-scrollbar,
.scrollable-textarea :deep(.v-field__input)::-webkit-scrollbar {
width: 14px !important;
}
.scrollable-textarea :deep(textarea)::-webkit-scrollbar-track,
.scrollable-textarea :deep(.v-field__input)::-webkit-scrollbar-track {
background-color: #f1f1f1 !important;
border-radius: 8px !important;
}
.scrollable-textarea :deep(textarea)::-webkit-scrollbar-thumb,
.scrollable-textarea :deep(.v-field__input)::-webkit-scrollbar-thumb {
background-color: #004D40 !important;
border-radius: 8px !important;
border: 2px solid #f1f1f1 !important;
}
.scrollable-textarea :deep(textarea)::-webkit-scrollbar-thumb:hover,
.scrollable-textarea :deep(.v-field__input)::-webkit-scrollbar-thumb:hover {
background-color: #00796B !important;
}
</style>