<template>
  <div class="left-panel">
    <div class="question-scroll">
      <p class="question-text">{{ question.stem }}</p>
    </div>
  </div>
</template>

<script setup lang="ts">
import type { AnswerQuestion } from "@/views/AnswerQuestions/components/types";

defineProps<{
  question: AnswerQuestion;
  currentIndex: number;
  total: number;
}>();
</script>

<style scoped lang="scss">
.left-panel {
  min-height: 0;
  padding: 0 32px;
  border-right: 1px solid #e9edf5;
}

.question-scroll {
  height: 100%;
  overflow-y: auto;
  padding-right: 14px;
  scrollbar-width: thin;
  scrollbar-color: #d0dbec transparent;
}

.question-text {
  font-size: 32px;
  line-height: 1.6;
  color: #2e3138;
  white-space: pre-line;
}
</style>
