Skip to content

Commit

Permalink
[REFACTOR] #125 : 설문 응답 페이지 주관식 UI 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Feb 16, 2024
1 parent c73ff35 commit 6f960df
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
Expand All @@ -23,20 +24,18 @@ internal fun SubjectiveSurveyForm(
onAnswerChanged: (String) -> Unit,
modifier: Modifier = Modifier,
) {
Column(
modifier = modifier,
verticalArrangement = Arrangement.spacedBy(40.dp),
) {
Column(modifier = modifier) {
Text(
text = questionTitle,
style = WappTheme.typography.titleRegular,
style = WappTheme.typography.titleMedium,
color = WappTheme.colors.white,
fontSize = 22.sp,
modifier = Modifier.padding(bottom = 40.dp),
)

Column(
modifier = Modifier.fillMaxWidth(),
verticalArrangement = Arrangement.spacedBy(4.dp),
verticalArrangement = Arrangement.spacedBy(10.dp),
) {
WappRoundedTextField(
value = answer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ internal fun SurveyAnswerForm(
onNextQuestionButtonClicked: () -> Unit,
onPreviousQuestionButtonClicked: () -> Unit,
) {
Column(
verticalArrangement = Arrangement.spacedBy(40.dp),
modifier = modifier,
) {
Column(modifier = modifier) {
val surveyQuestion = surveyForm.surveyQuestionList[questionNumber]
val lastQuestionNumber = surveyForm.surveyQuestionList.lastIndex

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.material3.LinearProgressIndicator
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
Expand All @@ -20,6 +22,9 @@ internal fun SurveyAnswerStateIndicator(index: Int, size: Int) {
Column(
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.spacedBy(8.dp),
modifier = Modifier
.wrapContentSize()
.padding(bottom = 40.dp),
) {
SurveyAnswerStateProgressBar(index = index, size = size)
SurveyAnswerStateText(index = index, size = size)
Expand Down

0 comments on commit 6f960df

Please sign in to comment.