Skip to content

Commit

Permalink
Merge pull request #212 from commetchat/feat/improve-blockquote-rende…
Browse files Browse the repository at this point in the history
…ring

Improve Rendering of Block Quote
  • Loading branch information
Airyzz authored Apr 27, 2024
2 parents a3e0f8d + 8cb8464 commit b03fbf3
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion commet/lib/ui/atoms/rich_text/matrix_html_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,21 @@ class _MatrixHtmlStateState extends State<MatrixHtmlState> {
right: Margin.zero(),
),
),
"code": Style(backgroundColor: Colors.black.withAlpha(40))
"code": Style(backgroundColor: Colors.black.withAlpha(40)),
"blockquote": Style(
border: Border(
left: BorderSide(
color: Theme.of(context).colorScheme.primary,
width: 2,
)),
padding: HtmlPaddings(left: HtmlPadding(4)),
margin: Margins(
bottom: Margin.zero(),
left: Margin(4),
top: Margin.zero(),
right: Margin.zero(),
),
)
},
onLinkTap: (url, attributes, element) {
LinkUtils.open(Uri.parse(url!));
Expand Down

0 comments on commit b03fbf3

Please sign in to comment.