Skip to content

Commit

Permalink
Add rounded corners to blockquote
Browse files Browse the repository at this point in the history
  • Loading branch information
fibelatti committed Sep 26, 2023
1 parent 66a2846 commit 6b53013
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import androidx.compose.runtime.rememberUpdatedState
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.hapticfeedback.HapticFeedbackType
import androidx.compose.ui.platform.LocalHapticFeedback
import androidx.compose.ui.platform.LocalView
Expand Down Expand Up @@ -410,7 +411,8 @@ private fun BookmarkItem(
text = post.description,
modifier = Modifier
.fillMaxWidth()
.padding(vertical = 8.dp),
.padding(vertical = 8.dp)
.clip(RoundedCornerShape(size = 6.dp)),
textColor = MaterialTheme.colorScheme.onSurfaceVariant,
textSize = 14.sp,
maxLines = 5,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.Divider
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.input.nestedscroll.nestedScroll
import androidx.compose.ui.platform.rememberNestedScrollInteropConnection
import androidx.compose.ui.tooling.preview.PreviewParameter
Expand Down Expand Up @@ -75,7 +77,9 @@ private fun BookmarkDescriptionScreen(

TextWithBlockquote(
text = description,
modifier = Modifier.padding(top = 16.dp),
modifier = Modifier
.padding(top = 16.dp)
.clip(RoundedCornerShape(size = 6.dp)),
textColor = MaterialTheme.colorScheme.onSurfaceVariant,
textSize = 16.sp,
)
Expand Down

0 comments on commit 6b53013

Please sign in to comment.