fix: reduce spacing around link preview card - remove top padding, tighten gap above

This commit is contained in:
Patrick Britton 2026-02-10 12:57:31 -06:00
parent 858d556d25
commit 701150bc8c
2 changed files with 2 additions and 8 deletions

View file

@ -4,9 +4,6 @@ import '../../models/post.dart';
import '../../theme/app_theme.dart';
import 'post_view_mode.dart';
/// Full-width link preview card shown below the post body.
/// Displays OG image as a full-width thumbnail (same sizing as post images),
/// with title, description, and site name overlaid/below.
class PostLinkPreview extends StatelessWidget {
final Post post;
final PostViewMode mode;
@ -40,9 +37,7 @@ class PostLinkPreview extends StatelessWidget {
final description = post.linkPreviewDescription ?? '';
final siteName = post.linkPreviewSiteName ?? '';
return Padding(
padding: const EdgeInsets.only(top: 12),
child: GestureDetector(
return GestureDetector(
onTap: () => _launchUrl(post.linkPreviewUrl!),
child: Container(
decoration: BoxDecoration(
@ -148,7 +143,6 @@ class PostLinkPreview extends StatelessWidget {
],
),
),
),
);
}

View file

@ -281,7 +281,7 @@ class _sojornPostCardState extends ConsumerState<sojornPostCard> {
],
// Link preview card after post body
if (post.hasLinkPreview) ...[
const SizedBox(height: 16),
const SizedBox(height: 8),
PostLinkPreview(
post: post,
mode: mode,