Bug 1826670 - Hide the close button on grid items when in multiselection

fenix/115.2.0
Noah Bond 1 year ago committed by mergify[bot]
parent cf23507c26
commit d53c4f1820

@ -148,16 +148,17 @@ fun TabGridItem(
)
}
Icon(
painter = painterResource(id = R.drawable.mozac_ic_close),
contentDescription = stringResource(id = R.string.close_tab),
tint = FirefoxTheme.colors.iconPrimary,
modifier = Modifier
.clickable { onCloseClick(tab) }
.size(24.dp)
.align(Alignment.CenterVertically),
)
if (!multiSelectionEnabled) {
Icon(
painter = painterResource(id = R.drawable.mozac_ic_close),
contentDescription = stringResource(id = R.string.close_tab),
tint = FirefoxTheme.colors.iconPrimary,
modifier = Modifier
.clickable { onCloseClick(tab) }
.size(24.dp)
.align(Alignment.CenterVertically),
)
}
}
Divider()

Loading…
Cancel
Save