1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3485 Primitives | Note layout (#2218)

This commit is contained in:
Konstantin Ivanov 2025-04-01 13:46:41 +02:00 committed by GitHub
parent eb0f7e16a9
commit 8af3957b24
Signed by: github
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 10 deletions

View file

@ -92,7 +92,7 @@ fun TypeLayoutsScreen(
contentPadding = PaddingValues(start = 20.dp, end = 20.dp),
horizontalArrangement = Arrangement.spacedBy(
space = 12.dp,
alignment = Alignment.End
alignment = Alignment.Start
),
) {
items(

View file

@ -432,15 +432,23 @@ class ObjectTypeViewModel(
}
TypeEvent.OnLayoutButtonClick -> {
uiTypeLayoutsState.value = Visible(
layouts = listOf(
ObjectType.Layout.BASIC,
ObjectType.Layout.NOTE,
ObjectType.Layout.PROFILE,
ObjectType.Layout.TODO
),
selectedLayout = _objTypeState.value?.recommendedLayout
)
if (_objTypeState.value?.recommendedLayout == ObjectType.Layout.NOTE) {
uiTypeLayoutsState.value = Visible(
layouts = listOf(ObjectType.Layout.NOTE),
selectedLayout = _objTypeState.value?.recommendedLayout
)
} else {
uiTypeLayoutsState.value = Visible(
layouts = listOf(
ObjectType.Layout.BASIC,
//DROID-3485, NOTE layout is not supported for now
//ObjectType.Layout.NOTE,
ObjectType.Layout.PROFILE,
ObjectType.Layout.TODO
),
selectedLayout = _objTypeState.value?.recommendedLayout
)
}
}
is TypeEvent.OnSyncStatusClick -> {