Skip to content

Commit 47d1ed6

Browse files
committed
feat: remove outline for placeholder when image cannot be loaded
1 parent e67ee75 commit 47d1ed6

File tree

1 file changed

+1
-2
lines changed
  • composeApp/src/wasmJsMain/kotlin/org/nsh07/nsh07/ui/homeScreen

1 file changed

+1
-2
lines changed

composeApp/src/wasmJsMain/kotlin/org/nsh07/nsh07/ui/homeScreen/ProjectCard.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.nsh07.nsh07.ui.homeScreen
22

3-
import androidx.compose.foundation.border
43
import androidx.compose.foundation.clickable
54
import androidx.compose.foundation.layout.*
65
import androidx.compose.material3.CircularWavyProgressIndicator
@@ -106,7 +105,7 @@ fun ProjectThumbnail(
106105
}
107106
},
108107
error = {
109-
if (wide) Box(Modifier.fillMaxWidth().aspectRatio(2f).border(1.dp, colorScheme.outline, imageShape))
108+
if (wide) Spacer(Modifier.fillMaxWidth().aspectRatio(2f))
110109
}
111110
)
112111
}

0 commit comments

Comments
 (0)