Tabs now use InstantTooltip
This commit is contained in:
parent
9b75e0d804
commit
8a65a56f75
@ -28,7 +28,7 @@ import com.jetpackduba.gitnuro.theme.isDark
|
||||
|
||||
@Composable
|
||||
fun InstantTooltip(
|
||||
text: String,
|
||||
text: String?,
|
||||
modifier: Modifier = Modifier,
|
||||
position: InstantTooltipPosition = InstantTooltipPosition.BOTTOM,
|
||||
content: @Composable () -> Unit,
|
||||
@ -47,7 +47,7 @@ fun InstantTooltip(
|
||||
content()
|
||||
}
|
||||
|
||||
if (isHovered && coordinates != null) {
|
||||
if (isHovered && coordinates != null && text != null) {
|
||||
Popup(
|
||||
properties = PopupProperties(
|
||||
focusable = false,
|
||||
|
@ -118,7 +118,7 @@ fun RepositoriesTabPanel(
|
||||
key = { _, tab -> tab.tabViewModel }
|
||||
) { index, tab ->
|
||||
HorizontalDraggableItem(dragDropState, index) { _ ->
|
||||
Tooltip(tab.path) {
|
||||
InstantTooltip(tab.path) {
|
||||
Tab(
|
||||
modifier = Modifier,
|
||||
title = tab.tabName,
|
||||
|
Loading…
Reference in New Issue
Block a user