Fix visual glitch when rotating a page with RTL language (#144)
This commit is contained in:
@@ -83,8 +83,8 @@ fun CommonPageList(
|
|||||||
state.onPageReorder(pageId, to.index)
|
state.onPageReorder(pageId, to.index)
|
||||||
}
|
}
|
||||||
val content: LazyListScope.() -> Unit = {
|
val content: LazyListScope.() -> Unit = {
|
||||||
itemsIndexed(state.document.pages.map { it.key }, key = { _, item -> item.saveKey}) { index, item ->
|
itemsIndexed(state.document.pages.map { it.key }, key = { _, item -> item.pageId}) { index, item ->
|
||||||
ReorderableItem(reorderableLazyListState, key = item.saveKey) { isDragging ->
|
ReorderableItem(reorderableLazyListState, key = item.pageId) { isDragging ->
|
||||||
val borderColor =
|
val borderColor =
|
||||||
if (isDragging) MaterialTheme.colorScheme.primary else Color.Transparent
|
if (isDragging) MaterialTheme.colorScheme.primary else Color.Transparent
|
||||||
val modifier = Modifier
|
val modifier = Modifier
|
||||||
|
|||||||
Reference in New Issue
Block a user