mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-11 00:37:41 +00:00
fix(buzz): make the Agent Console Attest FAB round like the app's other FABs
It was an ExtendedFloatingActionButton (icon + "Attest" label), which Material 3 renders as a rounded-rectangle pill — visually out of step with the circular FloatingActionButton(shape = CircleShape) used by the sibling chat/relay-group/ concord create actions. Switch to the same circular icon FAB, keeping the label as the icon's contentDescription for accessibility. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8KBSw6smQRyXLiWHeDsZ8
This commit is contained in:
+7
-5
@@ -31,9 +31,10 @@ import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.foundation.lazy.items
|
||||
import androidx.compose.foundation.shape.CircleShape
|
||||
import androidx.compose.material3.Card
|
||||
import androidx.compose.material3.CircularProgressIndicator
|
||||
import androidx.compose.material3.ExtendedFloatingActionButton
|
||||
import androidx.compose.material3.FloatingActionButton
|
||||
import androidx.compose.material3.HorizontalDivider
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.OutlinedButton
|
||||
@@ -107,11 +108,12 @@ fun AgentConsoleScreen(
|
||||
Scaffold(
|
||||
topBar = { TopBarWithBackButton("Agent Console", nav) },
|
||||
floatingActionButton = {
|
||||
ExtendedFloatingActionButton(
|
||||
text = { Text("Attest") },
|
||||
icon = { Icon(symbol = MaterialSymbols.Key, contentDescription = null) },
|
||||
FloatingActionButton(
|
||||
onClick = { nav.nav(Route.AgentAttestation) },
|
||||
)
|
||||
shape = CircleShape,
|
||||
) {
|
||||
Icon(symbol = MaterialSymbols.Key, contentDescription = "Attest")
|
||||
}
|
||||
},
|
||||
) { padding ->
|
||||
Column(modifier = Modifier.padding(padding).fillMaxSize()) {
|
||||
|
||||
Reference in New Issue
Block a user