Skip to content

Commit 292526a

Browse files
committed
Fix nft details image
1 parent 5d48b0a commit 292526a

File tree

1 file changed

+11
-1
lines changed
  • features/nft/presents/src/main/kotlin/com/gemwallet/features/nft/presents

1 file changed

+11
-1
lines changed

features/nft/presents/src/main/kotlin/com/gemwallet/features/nft/presents/NftDetailsScene.kt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,22 @@ package com.gemwallet.features.nft.presents
33
import androidx.compose.foundation.layout.aspectRatio
44
import androidx.compose.foundation.layout.fillMaxSize
55
import androidx.compose.foundation.layout.fillMaxWidth
6+
import androidx.compose.foundation.layout.padding
67
import androidx.compose.foundation.lazy.LazyColumn
78
import androidx.compose.foundation.lazy.LazyListScope
89
import androidx.compose.foundation.lazy.items
10+
import androidx.compose.foundation.shape.RoundedCornerShape
911
import androidx.compose.material.icons.Icons
1012
import androidx.compose.material.icons.filled.ArrowUpward
1113
import androidx.compose.material3.Icon
1214
import androidx.compose.material3.IconButton
1315
import androidx.compose.runtime.Composable
1416
import androidx.compose.runtime.getValue
1517
import androidx.compose.ui.Modifier
18+
import androidx.compose.ui.draw.clip
1619
import androidx.compose.ui.platform.LocalUriHandler
1720
import androidx.compose.ui.res.stringResource
21+
import androidx.compose.ui.unit.dp
1822
import androidx.hilt.navigation.compose.hiltViewModel
1923
import androidx.lifecycle.compose.collectAsStateWithLifecycle
2024
import com.gemwallet.android.ui.R
@@ -24,7 +28,10 @@ import com.gemwallet.android.ui.components.list_item.property.PropertyItem
2428
import com.gemwallet.android.ui.components.list_item.property.PropertyNetwork
2529
import com.gemwallet.android.ui.components.screen.Scene
2630
import com.gemwallet.android.ui.models.actions.CancelAction
31+
import com.gemwallet.android.ui.theme.defaultPadding
2732
import com.gemwallet.android.ui.theme.listSpacerBig
33+
import com.gemwallet.android.ui.theme.padding16
34+
import com.gemwallet.android.ui.theme.paddingDefault
2835
import com.gemwallet.features.nft.viewmodels.NftAssetDetailsUIModel
2936
import com.gemwallet.features.nft.viewmodels.NftDetailsViewModel
3037
import com.wallet.core.primitives.AssetId
@@ -61,8 +68,11 @@ fun NFTDetailsScene(
6168
size = null,
6269
transformation = null,
6370
modifier = Modifier
71+
.padding(horizontal = paddingDefault)
6472
.fillMaxWidth()
65-
.aspectRatio(1f),
73+
.aspectRatio(1f)
74+
.clip(RoundedCornerShape(paddingDefault))
75+
,
6676
)
6777
}
6878
listSpacerBig()

0 commit comments

Comments
 (0)