fix [P-256]: картинки и скролл
This commit is contained in:
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 }
|
{ 'border-b-thin': !isDialog, 'pa-0': isDialog }
|
||||||
]">
|
]">
|
||||||
<div class="test-info">
|
<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="text-body-1 mb-4" v-html="formatDescription(data?.description)"></div>
|
||||||
|
|
||||||
<div class="d-flex align-center mb-3">
|
<div class="d-flex align-center mb-3">
|
||||||
@@ -58,6 +66,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
|
import defaultImage from '@/assets/emblem.png';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
@@ -115,7 +124,8 @@ export default {
|
|||||||
isExamMode,
|
isExamMode,
|
||||||
timeWordDeclension,
|
timeWordDeclension,
|
||||||
formatDescription,
|
formatDescription,
|
||||||
formatTime
|
formatTime,
|
||||||
|
defaultImage
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
Вопрос {{ currentQuestion + 1 }} из {{ totalQuestions }}
|
Вопрос {{ currentQuestion + 1 }} из {{ totalQuestions }}
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
<h3 class="mb-2 px-4">{{ question.name }}</h3>
|
<h3 class="mb-2 px-4">{{ question.name }}</h3>
|
||||||
<v-card-text style="overflow-y: scroll">
|
<v-card-text>
|
||||||
<v-img
|
<v-img
|
||||||
v-if="question.file"
|
v-if="question.file"
|
||||||
:src="`http://127.0.0.1:8000${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;
|
padding: 16px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.v-card-text {
|
||||||
|
max-height: 550px;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.v-radio-group :deep(.v-radio),
|
.v-radio-group :deep(.v-radio),
|
||||||
.v-checkbox {
|
.v-checkbox {
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
@@ -186,4 +191,9 @@ export default {
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.v-img {
|
||||||
|
max-width: 100% !important;
|
||||||
|
height: auto !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in new issue
Block a user