fix [P-256]: картинки и скролл

This commit is contained in:
Denis Voinovich committed 2025-06-03 11:43:11 +03:00
1 parent a39b962d0a
commit 6cc35839ff
2 files changed
+23 -3

No files matched your search

@@ -9,6 +9,14 @@
{ 'border-b-thin': !isDialog, 'pa-0': isDialog }
]">
<div class="test-info">
<div class="d-flex justify-center mb-4">
<v-img
:src="data?.file || defaultImage"
class="rounded-lg"
max-height="200"
contain
/>
</div>
<div class="text-body-1 mb-4" v-html="formatDescription(data?.description)"></div>
<div class="d-flex align-center mb-3">
@@ -58,6 +66,7 @@
<script>
import { useRoute } from 'vue-router';
import { computed } from 'vue';
import defaultImage from '@/assets/emblem.png';
export default {
props: {
@@ -115,7 +124,8 @@ export default {
isExamMode,
timeWordDeclension,
formatDescription,
formatTime
formatTime,
defaultImage
};
}
};
@@ -7,11 +7,11 @@
Вопрос {{ currentQuestion + 1 }} из {{ totalQuestions }}
</v-card-title>
<h3 class="mb-2 px-4">{{ question.name }}</h3>
<v-card-text style="overflow-y: scroll">
<v-card-text>
<v-img
v-if="question.file"
:src="`http://127.0.0.1:8000${question.file}`"
class="w-50 mx-auto"
class="w-50 mx-auto mb-4"
/>
<!-- Одиночный выбор -->
@@ -145,6 +145,11 @@ export default {
padding: 16px !important;
}
.v-card-text {
max-height: 550px;
overflow-y: auto;
}
.v-radio-group :deep(.v-radio),
.v-checkbox {
margin-bottom: 12px;
@@ -186,4 +191,9 @@ export default {
margin: 0 auto;
display: block;
}
.v-img {
max-width: 100% !important;
height: auto !important;
}
</style>