Skip to content

Commit

Permalink
[REFACTOR] #125 : 일정 및 설문 삭제 Dialog 마진 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Feb 16, 2024
1 parent add34aa commit 84144eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ private fun DeleteEventDialog(
horizontalAlignment = Alignment.CenterHorizontally,
modifier = Modifier
.wrapContentSize()
.padding(horizontal = 30.dp)
.padding(horizontal = 20.dp)
.clip(RoundedCornerShape(8.dp))
.background(WappTheme.colors.black25),
) {
Expand All @@ -307,7 +307,7 @@ private fun DeleteEventDialog(
text = generateDialogContentString(),
style = WappTheme.typography.contentRegular,
color = WappTheme.colors.white,
modifier = Modifier.padding(top = 12.dp, start = 12.dp, end = 12.dp),
modifier = Modifier.padding(horizontal = 12.dp),
)

Row(
Expand Down Expand Up @@ -361,7 +361,7 @@ private fun DeleteEventDialog(

@Composable
private fun generateDialogContentString() = buildAnnotatedString {
append("정말로 해당 일정을 삭제하시겠습니까?\n")
append("정말로 해당 일정을 삭제하시겠습니까?\n\n")
withStyle(
style = SpanStyle(
textDecoration = TextDecoration.Underline,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
Expand Down Expand Up @@ -46,7 +47,8 @@ internal fun ProfileSettingDialog(
verticalArrangement = Arrangement.spacedBy(16.dp),
horizontalAlignment = Alignment.CenterHorizontally,
modifier = Modifier
.wrapContentSize()
.wrapContentHeight()
.fillMaxWidth()
.padding(horizontal = 30.dp)
.clip(RoundedCornerShape(8.dp))
.background(WappTheme.colors.black25),
Expand Down

0 comments on commit 84144eb

Please sign in to comment.