-
Notifications
You must be signed in to change notification settings - Fork 0
Fix FolderCreateScreen based on QA #1100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,10 +3,7 @@ package daily.dayo.presentation.view | |||||||||||||||||||||||||||||||||||||||||||
| import androidx.compose.foundation.layout.Arrangement | ||||||||||||||||||||||||||||||||||||||||||||
| import androidx.compose.foundation.layout.Row | ||||||||||||||||||||||||||||||||||||||||||||
| import androidx.compose.foundation.layout.Spacer | ||||||||||||||||||||||||||||||||||||||||||||
| import androidx.compose.foundation.layout.fillMaxWidth | ||||||||||||||||||||||||||||||||||||||||||||
| import androidx.compose.foundation.layout.padding | ||||||||||||||||||||||||||||||||||||||||||||
| import androidx.compose.foundation.layout.width | ||||||||||||||||||||||||||||||||||||||||||||
| import androidx.compose.foundation.layout.wrapContentHeight | ||||||||||||||||||||||||||||||||||||||||||||
| import androidx.compose.material.Text | ||||||||||||||||||||||||||||||||||||||||||||
| import androidx.compose.material3.Switch | ||||||||||||||||||||||||||||||||||||||||||||
| import androidx.compose.material3.SwitchDefaults | ||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -24,15 +21,13 @@ import daily.dayo.presentation.theme.White_FFFFFF | |||||||||||||||||||||||||||||||||||||||||||
| fun ToggleButtonWithLabel( | ||||||||||||||||||||||||||||||||||||||||||||
| label: String, | ||||||||||||||||||||||||||||||||||||||||||||
| isToggled: Boolean, | ||||||||||||||||||||||||||||||||||||||||||||
| onToggleChanged: (Boolean) -> Unit | ||||||||||||||||||||||||||||||||||||||||||||
| onToggleChanged: (Boolean) -> Unit, | ||||||||||||||||||||||||||||||||||||||||||||
| modifier: Modifier = Modifier | ||||||||||||||||||||||||||||||||||||||||||||
| ) { | ||||||||||||||||||||||||||||||||||||||||||||
| Row( | ||||||||||||||||||||||||||||||||||||||||||||
| verticalAlignment = Alignment.CenterVertically, | ||||||||||||||||||||||||||||||||||||||||||||
| horizontalArrangement = Arrangement.End, | ||||||||||||||||||||||||||||||||||||||||||||
| modifier = Modifier | ||||||||||||||||||||||||||||||||||||||||||||
| .padding(18.dp) | ||||||||||||||||||||||||||||||||||||||||||||
| .fillMaxWidth() | ||||||||||||||||||||||||||||||||||||||||||||
| .wrapContentHeight() | ||||||||||||||||||||||||||||||||||||||||||||
| modifier = modifier | ||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+24
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 기존 호출부의 토글 레이아웃이 깨질 수 있습니다.
🛠️ 기존 기본 레이아웃을 보존하는 수정안 import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
+import androidx.compose.foundation.layout.fillMaxWidth
+import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
+import androidx.compose.foundation.layout.wrapContentHeight fun ToggleButtonWithLabel(
label: String,
isToggled: Boolean,
onToggleChanged: (Boolean) -> Unit,
- modifier: Modifier = Modifier
+ modifier: Modifier = Modifier
+ .padding(18.dp)
+ .fillMaxWidth()
+ .wrapContentHeight()
) {📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||
| ) { | ||||||||||||||||||||||||||||||||||||||||||||
| Text( | ||||||||||||||||||||||||||||||||||||||||||||
| text = label, | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By changing
ToggleButtonWithLabelto use a plainmodifierdefault, the component no longer applies its previousfillMaxWidth/padding behavior for existing call sites that don’t pass a modifier (for example,FolderEditScreen). In those screens,Arrangement.Endstops working as intended because the row now wraps content and is centered by the parent column, causing an unintended layout regression outside the QA-targeted screen.Useful? React with 👍 / 👎.