Skip to content

Commit

Permalink
Apply media caption alignment fix also for EleX layout
Browse files Browse the repository at this point in the history
Change-Id: I2b01e86e228433fd59f219c24a88b032b2fff05a
  • Loading branch information
SpiritCroc committed Feb 16, 2025
1 parent 2bad1e1 commit c033f7b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package io.element.android.features.messages.impl.timeline.components.event

import androidx.compose.runtime.Composable
import androidx.compose.ui.unit.Dp
import chat.schildi.lib.preferences.ScPrefs
import chat.schildi.lib.preferences.value

@Composable
fun scLayoutDpUnspecified() = if (ScPrefs.SC_TIMELINE_LAYOUT.value()) Dp.Unspecified else null
fun scLayoutDpUnspecified() = Dp.Unspecified // This fix seems to be necessary on both SC and EleX layouts, but not on upstream EleX though?

0 comments on commit c033f7b

Please sign in to comment.