mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 19:37:02 +05:30
app: tweak padding for tags and add border
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
36804a43bc
commit
b68eda3051
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,9 @@
|
||||||
package dev.msfjarvis.lobsters.ui
|
package dev.msfjarvis.lobsters.ui
|
||||||
|
|
||||||
|
import androidx.compose.foundation.BorderStroke
|
||||||
import androidx.compose.foundation.Text
|
import androidx.compose.foundation.Text
|
||||||
import androidx.compose.foundation.background
|
import androidx.compose.foundation.background
|
||||||
|
import androidx.compose.foundation.border
|
||||||
import androidx.compose.foundation.clickable
|
import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
import androidx.compose.foundation.layout.Column
|
import androidx.compose.foundation.layout.Column
|
||||||
|
@ -46,8 +48,9 @@ fun LazyItemScope.LobstersItem(
|
||||||
Text(
|
Text(
|
||||||
text = tag,
|
text = tag,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
.border(BorderStroke(1.dp, Color.Gray))
|
||||||
.background(Color(0xFFFFFCD7), RoundedCornerShape(4.dp))
|
.background(Color(0xFFFFFCD7), RoundedCornerShape(4.dp))
|
||||||
.padding(4.dp),
|
.padding(vertical = 2.dp, horizontal = 4.dp),
|
||||||
color = Color.DarkGray,
|
color = Color.DarkGray,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue