File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
application/core/persistence_sqldelight/src/commonMain/kotlin/io/writeopia/sqldelight/extensions
writeopia_ui/src/commonMain/kotlin/io/writeopia/ui/drawer/content Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package io.writeopia.sqldelight.extensions
33import io.writeopia.app.sql.FolderEntity
44import io.writeopia.common.utils.extensions.toBoolean
55import io.writeopia.models.Folder
6+ import io.writeopia.sdk.models.document.MenuItem
67import kotlinx.datetime.Instant
78
89fun FolderEntity.toModel (count : Long ) =
@@ -15,4 +16,8 @@ fun FolderEntity.toModel(count: Long) =
1516 userId = user_id,
1617 itemCount = count,
1718 favorite = favorite.toBoolean(),
19+ icon = if (this .icon != null && this .icon_tint != null ) MenuItem .Icon (
20+ this .icon,
21+ this .icon_tint.toInt()
22+ ) else null
1823 )
Original file line number Diff line number Diff line change @@ -80,16 +80,16 @@ class HeaderDrawer(
8080 val interactionSource = remember { MutableInteractionSource () }
8181 val isHovered by interactionSource.collectIsHoveredAsState()
8282
83- Box (modifier = Modifier .hoverable(interactionSource)) {
83+ Box (modifier = Modifier .hoverable(interactionSource).padding(bottom = 16 .dp) ) {
8484 Row (
8585 modifier = modifier
8686 .let { modifierLet ->
8787 if (backgroundColor != null ) {
8888 modifierLet
8989 .background(Color (backgroundColor))
90- .padding(top = 130 .dp)
90+ .padding(top = 114 .dp)
9191 } else {
92- modifierLet.padding(top = 30 .dp)
92+ modifierLet.padding(top = 14 .dp)
9393 }
9494 }
9595 .fillMaxWidth(),
You can’t perform that action at this time.
0 commit comments