Skip to content

Commit

Permalink
#124 Set top margin on p tags to 0. Helps ensure HTML descriptions st…
Browse files Browse the repository at this point in the history
…art at top of parent.
  • Loading branch information
amugofjava committed Apr 18, 2024
1 parent 95afc2a commit c7eaa41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/podcast/podcast_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ class _PodcastTitleState extends State<PodcastTitle> {
child: Text(widget.podcast.title, style: textTheme.titleLarge),
),
Padding(
padding: const EdgeInsets.fromLTRB(8, 0, 8, 8),
padding: const EdgeInsets.fromLTRB(8, 0, 8, 4),
child: Text(widget.podcast.copyright ?? '', style: textTheme.bodySmall),
),
],
Expand Down
3 changes: 3 additions & 0 deletions lib/ui/widgets/podcast_html.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ class PodcastHtml extends StatelessWidget {
'html': Style(
fontWeight: textTheme.bodyLarge!.fontWeight,
fontSize: fontSize ?? FontSize.large,
),
'p': Style(
margin: Margins.only(top: 0, bottom: 12),
)
},
onLinkTap: (url, _, __) => canLaunchUrl(Uri.parse(url!)).then((value) => launchUrl(
Expand Down

0 comments on commit c7eaa41

Please sign in to comment.