mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-04-29 02:50:34 -05:00
[core] Fix Blockquote Style (#148)
This commit fixes the style of blockquotes when we render the item description as Markdown. Until now blockquotes had a weird blue background, so that the text wasn't readable. Now we are using the secondary color as background and we add a border on the left site with the primary color. We would also like to use italic as font family, but there is currently a bug, so that the defined blockquote style is not applied. See https://github.com/flutter/flutter/issues/81720
This commit is contained in:
@@ -54,6 +54,15 @@ class ItemDescription extends StatelessWidget {
|
||||
codeblockDecoration: const BoxDecoration(
|
||||
color: Constants.secondary,
|
||||
),
|
||||
blockquoteDecoration: const BoxDecoration(
|
||||
color: Constants.secondary,
|
||||
border: Border(
|
||||
left: BorderSide(
|
||||
color: Constants.primary,
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
onTapLink: (text, href, title) {
|
||||
if (href != null) {
|
||||
|
||||
@@ -55,6 +55,15 @@ class ItemDescription extends StatelessWidget {
|
||||
codeblockDecoration: const BoxDecoration(
|
||||
color: Constants.secondary,
|
||||
),
|
||||
blockquoteDecoration: const BoxDecoration(
|
||||
color: Constants.secondary,
|
||||
border: Border(
|
||||
left: BorderSide(
|
||||
color: Constants.primary,
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
onTapLink: (text, href, title) {
|
||||
if (href != null) {
|
||||
|
||||
Reference in New Issue
Block a user