desktop: clickable links in quoted messages (#2943)
This commit is contained in:
parent
107b6e1aec
commit
63ca7a34ff
@ -20,6 +20,7 @@ import androidx.compose.ui.text.font.FontStyle
|
|||||||
import androidx.compose.ui.text.style.TextOverflow
|
import androidx.compose.ui.text.style.TextOverflow
|
||||||
import androidx.compose.ui.unit.*
|
import androidx.compose.ui.unit.*
|
||||||
import chat.simplex.common.model.*
|
import chat.simplex.common.model.*
|
||||||
|
import chat.simplex.common.platform.appPlatform
|
||||||
import chat.simplex.common.ui.theme.*
|
import chat.simplex.common.ui.theme.*
|
||||||
import chat.simplex.common.views.helpers.*
|
import chat.simplex.common.views.helpers.*
|
||||||
import chat.simplex.common.platform.base64ToBitmap
|
import chat.simplex.common.platform.base64ToBitmap
|
||||||
@ -57,7 +58,8 @@ fun FramedItemView(
|
|||||||
maxLines = lines,
|
maxLines = lines,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
style = TextStyle(fontSize = 15.sp, color = MaterialTheme.colors.onSurface),
|
style = TextStyle(fontSize = 15.sp, color = MaterialTheme.colors.onSurface),
|
||||||
linkMode = linkMode
|
linkMode = linkMode,
|
||||||
|
uriHandler = if (appPlatform.isDesktop) uriHandler else null
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user