mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 08:27:04 +00:00
fix(desktop): SearchPill hover bounds + AccountSwitcher ripple size
- SearchPill: move hoverHighlight() inside Surface content Row so it's clipped to the pill's 36dp height (was drawing on parent Row height) - AccountSwitcherDropdown: reduce IconButton from 48dp to 40dp so ripple circle fits within collapsed sidebar width Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
c53c8238fb
commit
c7483a4f0d
+1
-1
@@ -99,7 +99,7 @@ fun AccountSwitcherDropdown(
|
||||
Box(modifier = modifier) {
|
||||
IconButton(
|
||||
onClick = { expanded = true },
|
||||
modifier = Modifier.size(48.dp),
|
||||
modifier = Modifier.size(40.dp),
|
||||
) {
|
||||
Icon(
|
||||
MaterialSymbols.Person,
|
||||
|
||||
+2
-3
@@ -33,7 +33,6 @@ import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.vitorpamplona.amethyst.commons.icons.symbols.Icon
|
||||
import com.vitorpamplona.amethyst.commons.icons.symbols.MaterialSymbols
|
||||
@@ -50,11 +49,11 @@ fun SearchPill(
|
||||
onClick = onClick,
|
||||
shape = RoundedCornerShape(999.dp),
|
||||
color = MaterialTheme.colorScheme.surfaceContainerHigh,
|
||||
modifier = modifier.height(36.dp).clip(RoundedCornerShape(999.dp)).hoverHighlight(),
|
||||
modifier = modifier.height(36.dp),
|
||||
) {
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
modifier = Modifier.padding(horizontal = 12.dp),
|
||||
modifier = Modifier.hoverHighlight().padding(horizontal = 12.dp),
|
||||
) {
|
||||
Icon(
|
||||
MaterialSymbols.Search,
|
||||
|
||||
Reference in New Issue
Block a user