Skip to content

Commit 2d5971b

Browse files
committed
Fix: Align dialog buttons to the end and update version
This commit addresses an issue with the alignment of buttons within the `PersianDatePickerDialog` and increments the library version. **Key Changes:** - **Dialog Button Alignment:** - In `PersianDatePickerDialog.kt`, the `Row` containing the dismiss and confirm buttons now uses `Modifier.fillMaxWidth()` and `horizontalArrangement = Arrangement.End`. This ensures the buttons are aligned to the end (right side in LTR, left side in RTL) of the dialog, consistent with common dialog design patterns. - The `Arrangement.spacedBy(DialogButtonsMainAxisSpacing)` was removed as `Arrangement.End` handles the spacing in this context. - **Version Update:** - The library version in `library/build.gradle.kts` has been incremented from `0.0.12-beta1` to `0.0.12-beta2`. - **Added Screenshots:** - New screenshots have been added to the `screenshots` directory: - `Screenshot From 2025-10-01 05-47-22.png` - `Screenshot From 2025-10-01 05-47-27.png` - `Screenshot From 2025-10-01 05-47-37.png` - `Screenshot From 2025-10-01 05-47-49.png` These changes improve the visual consistency of the dialog and prepare for a new beta release.
1 parent 49c3d85 commit 2d5971b

File tree

6 files changed

+4
-5
lines changed

6 files changed

+4
-5
lines changed

library/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ plugins {
1616
}
1717

1818
group = "io.github.faridsolgi"
19-
version = "0.0.12-beta1"
19+
version = "0.0.12-beta2"
2020

2121
kotlin {
2222
jvm()

library/src/commonMain/kotlin/io/github/faridsolgi/view/PersianDatePickerDialog.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import androidx.compose.foundation.layout.Column
66
import androidx.compose.foundation.layout.ColumnScope
77
import androidx.compose.foundation.layout.PaddingValues
88
import androidx.compose.foundation.layout.Row
9+
import androidx.compose.foundation.layout.fillMaxWidth
910
import androidx.compose.foundation.layout.heightIn
1011
import androidx.compose.foundation.layout.padding
1112
import androidx.compose.foundation.layout.requiredWidth
@@ -74,10 +75,8 @@ fun PersianDatePickerDialog(
7475
LocalLayoutDirection provides LayoutDirection.Rtl
7576
) {
7677
Row(
77-
modifier = Modifier.padding(horizontal = DialogButtonsCrossAxisSpacing),
78-
horizontalArrangement = Arrangement.spacedBy(
79-
DialogButtonsMainAxisSpacing
80-
),
78+
modifier = Modifier.fillMaxWidth().padding(horizontal = DialogButtonsCrossAxisSpacing),
79+
horizontalArrangement = Arrangement.End,
8180
verticalAlignment = Alignment.CenterVertically
8281
) {
8382
dismissButton?.invoke()
24.1 KB
Loading
29.5 KB
Loading
16.3 KB
Loading
24.7 KB
Loading

0 commit comments

Comments
 (0)