Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ dagCommand {
printModulesInfo = true
}

extra["sdkVersion"] = "0.12.0"
extra["sdkVersion"] = "0.12.1"
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import io.writeopia.ui.model.DrawConfig
import io.writeopia.ui.model.DrawInfo

class EquationDrawer(
private val showEditAlways: Boolean,
private val equationToImageUrl: String,
private val customBackgroundColor: Color,
private val config: DrawConfig,
Expand All @@ -57,7 +58,7 @@ class EquationDrawer(
private val moveRequest: (Action.Move) -> Unit,
private val onSelected: (Boolean, Int) -> Unit,
private val receiveExternalFile: (List<ExternalFile>, Int) -> Unit,
private val onEditClick: (Int) -> Unit
private val onEditClick: (Int) -> Unit,
) : StoryStepDrawer {

@Composable
Expand Down Expand Up @@ -147,7 +148,7 @@ class EquationDrawer(
Spacer(modifier = Modifier.width(6.dp))

Crossfade(
targetState = isHovered,
targetState = isHovered || showEditAlways,
label = "iconCrossFade",
animationSpec = tween(durationMillis = 200)
) { show ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ object CommonDrawers {
val loadingDrawer = LoadingDrawer()

val equationsDrawer = EquationDrawer(
showEditAlways = !isDesktop,
equationToImageUrl = equationToImageUrl ?: "",
customBackgroundColor = MaterialTheme.colorScheme.surfaceVariant,
dragIconWidth = dragIconWidth,
Expand Down