Skip to content

Commit

Permalink
Small fixes for video attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
Airyzz committed Jul 3, 2024
1 parent d89fea2 commit 01fc3fc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ class _VideoPlayerImplementationState extends State<VideoPlayerImplementation> {
}

return Size(
player.state.height!.toDouble(), player.state.width!.toDouble());
player.state.width!.toDouble(), player.state.height!.toDouble());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ class _AttachmentProcessorState extends State<AttachmentProcessor> {
super.initState();
}

@override
void dispose() {
videoController?.pause();
super.dispose();
}

void loadExif() async {
late Map<String, IfdTag> data;
if (widget.attachment.data != null) {
Expand Down
6 changes: 5 additions & 1 deletion tiamat/lib/atoms/panel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ class Panel extends StatelessWidget {
padding: const EdgeInsets.fromLTRB(8, 8, 0, 0),
child: Align(
alignment: Alignment.centerLeft,
child: tiamat.Text.labelLow(header!)),
child: tiamat.Text.labelLow(
header!,
maxLines: 1,
overflow: TextOverflow.ellipsis,
)),
),
if (header != null)
Padding(
Expand Down

0 comments on commit 01fc3fc

Please sign in to comment.