diff --git a/lib/pages/profile_view/profile_view.dart b/lib/pages/profile_view/profile_view.dart index 891fecc..24b2914 100644 --- a/lib/pages/profile_view/profile_view.dart +++ b/lib/pages/profile_view/profile_view.dart @@ -204,7 +204,10 @@ class _ProfileViewState extends State { if (index == 0) { return profileViewDisplay; } else if (index > 0 && index <= threads.length) { - return Thread(model: threads[index - 1]); + return Thread( + model: threads[index - 1], + constrained: false, + ); } return const LoadingBox(); diff --git a/lib/partials/thread.dart b/lib/partials/thread.dart index 20b9f70..98e71b2 100644 --- a/lib/partials/thread.dart +++ b/lib/partials/thread.dart @@ -5,8 +5,13 @@ import '../business_logic/timeline/timeline.dart' as logic; import '../global.dart' as global; class Thread extends StatefulWidget { - const Thread({required this.model, Key? key}) : super(key: key); + const Thread({ + required this.model, + Key? key, + this.constrained = true, + }) : super(key: key); final logic.ThreadModel model; + final bool constrained; @override State createState() => _ThreadState(); @@ -72,6 +77,23 @@ class _ThreadState extends State { ); } + if (!widget.constrained) { + return Padding( + padding: const EdgeInsets.all(4), + child: Container( + padding: const EdgeInsets.all(24), + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.surface, + border: Border.all(color: Theme.of(context).colorScheme.secondary), + borderRadius: BorderRadius.circular(8), + ), + child: Column( + children: c, + ), + ), + ); + } + return Row( mainAxisAlignment: MainAxisAlignment.center, children: [