Skip to content

Commit

Permalink
feat: add more elevation to messages written by user
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnyro committed Oct 11, 2023
1 parent f245dd9 commit b1d2470
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.filled.Send
import androidx.compose.material3.CardDefaults
import androidx.compose.material3.CardElevation
import androidx.compose.material3.DismissDirection
import androidx.compose.material3.DismissValue
import androidx.compose.material3.ElevatedCard
Expand Down Expand Up @@ -170,6 +172,9 @@ fun SmsThreadScreen(
bottomStart = if (isSender) defaultCornerRadius else edgedCornerRadius,
topEnd = defaultCornerRadius,
topStart = defaultCornerRadius
),
elevation = CardDefaults.elevatedCardElevation(
defaultElevation = if (isSender) 20.dp else 5.dp
)
) {
Column(
Expand Down

0 comments on commit b1d2470

Please sign in to comment.