From b82d77ec89182771e67dc6d1f7c9e9dcd744b673 Mon Sep 17 00:00:00 2001 From: Alexandre G Pereira Date: Sun, 18 Aug 2024 11:32:18 -0300 Subject: [PATCH] Change image content style of monster detail (#325) * Update Main.yml * Change image content style of monster detail --- .github/workflows/Main.yml | 6 +++--- .../alexandregpereira/hunter/ui/compose/MonsterCoilImage.kt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Main.yml b/.github/workflows/Main.yml index 37ede0ca..022193ca 100644 --- a/.github/workflows/Main.yml +++ b/.github/workflows/Main.yml @@ -27,14 +27,14 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew - - name: Verify database migration - run: chmod +x ./scripts/sqldelight/verifyDatabaseMigration && ./scripts/sqldelight/verifyDatabaseMigration - - name: Build with Gradle env: MONSTER_COMPENDIUM_KEYSTORE_PASSWORD: ${{ secrets.MONSTER_COMPENDIUM_KEYSTORE_PASSWORD }} run: ./gradlew jvmTest testReleaseUnitTest assembleRelease bundleRelease :app:packageDmg + - name: Verify database migration + run: chmod +x ./scripts/sqldelight/verifyDatabaseMigration && ./scripts/sqldelight/verifyDatabaseMigration + - name: Upload the test report if: failure() uses: actions/upload-artifact@v3.1.1 diff --git a/ui/core/src/commonMain/kotlin/br/alexandregpereira/hunter/ui/compose/MonsterCoilImage.kt b/ui/core/src/commonMain/kotlin/br/alexandregpereira/hunter/ui/compose/MonsterCoilImage.kt index 9bf41e3a..54dea9d0 100644 --- a/ui/core/src/commonMain/kotlin/br/alexandregpereira/hunter/ui/compose/MonsterCoilImage.kt +++ b/ui/core/src/commonMain/kotlin/br/alexandregpereira/hunter/ui/compose/MonsterCoilImage.kt @@ -34,7 +34,7 @@ fun MonsterCoilImage( shape: Shape = RectangleShape, modifier: Modifier = Modifier, backgroundColor: String, - contentScale: ContentScale = ContentScale.Fit, + contentScale: ContentScale = ContentScale.Crop, graphicsLayerBlock: GraphicsLayerScope.() -> Unit = {}, ) = MonsterCoilImage( imageUrl = imageUrl, @@ -53,7 +53,7 @@ fun MonsterCoilImage( shape: Shape = RectangleShape, modifier: Modifier = Modifier, backgroundColor: Color? = null, - contentScale: ContentScale = ContentScale.Fit, + contentScale: ContentScale = ContentScale.Crop, graphicsLayerBlock: GraphicsLayerScope.() -> Unit = {}, ) { CoilImage(