Shih-hungg commited on
Commit
641c44a
·
1 Parent(s): fe844e6

Fix the height

Browse files
src/app/page.tsx CHANGED
@@ -258,7 +258,7 @@ export default function QuestionBuilder() {
258
  <div className="flex-1 flex flex-col">
259
  {/* Upper Right Panel: Source Article Editor */}
260
  <Article
261
- className="flex-1"
262
  sourceArticle={sourceArticle}
263
  onSourceArticleChange={setSourceArticle}
264
  isSourceLocked={isSourceLocked}
@@ -267,7 +267,7 @@ export default function QuestionBuilder() {
267
 
268
  {/* Lower Right Panel: Question List */}
269
  <QuestionList
270
- className="flex-1"
271
  questions={questions}
272
  questionTypes={QUESTION_TYPES}
273
  selectedQuestions={selectedQuestions}
 
258
  <div className="flex-1 flex flex-col">
259
  {/* Upper Right Panel: Source Article Editor */}
260
  <Article
261
+ className="h-1/2"
262
  sourceArticle={sourceArticle}
263
  onSourceArticleChange={setSourceArticle}
264
  isSourceLocked={isSourceLocked}
 
267
 
268
  {/* Lower Right Panel: Question List */}
269
  <QuestionList
270
+ className="h-1/2"
271
  questions={questions}
272
  questionTypes={QUESTION_TYPES}
273
  selectedQuestions={selectedQuestions}
src/components/article/Article.tsx CHANGED
@@ -70,7 +70,7 @@ export function Article({
70
  };
71
 
72
  return (
73
- <Card className={`flex flex-col ${className}`}>
74
  <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-4 px-6 pt-2">
75
  <CardTitle className="text-lg font-semibold">
76
  📄 Source Article
@@ -107,13 +107,13 @@ export function Article({
107
  </div>
108
  </CardHeader>
109
 
110
- <CardContent className="flex-1 px-6 pb-6">
111
  <Textarea
112
  value={sourceArticle}
113
  onChange={(e) => handleSourceArticleChange(e.target.value)}
114
  placeholder="Paste or type your source article here (articles, passages, etc.)..."
115
  disabled={isSourceLocked}
116
- className="w-full h-full resize-none min-h-[200px]"
117
  />
118
  </CardContent>
119
 
 
70
  };
71
 
72
  return (
73
+ <Card className={`flex flex-col h-full ${className}`}>
74
  <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-4 px-6 pt-2">
75
  <CardTitle className="text-lg font-semibold">
76
  📄 Source Article
 
107
  </div>
108
  </CardHeader>
109
 
110
+ <CardContent className="flex-1 px-6 pb-6 overflow-hidden">
111
  <Textarea
112
  value={sourceArticle}
113
  onChange={(e) => handleSourceArticleChange(e.target.value)}
114
  placeholder="Paste or type your source article here (articles, passages, etc.)..."
115
  disabled={isSourceLocked}
116
+ className="w-full h-full resize-none"
117
  />
118
  </CardContent>
119