Skip to content

Commit

Permalink
Make text selectable in expanded view of artefact
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-selo committed Jul 4, 2023
1 parent f8ab559 commit a6ab065
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions frontend/lib/ui/dashboard/artefact_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,26 @@ class ArtefactDialog extends StatelessWidget {

@override
Widget build(BuildContext context) {
return Dialog(
child: SizedBox(
height: min(800, MediaQuery.of(context).size.height * 0.8),
width: min(1200, MediaQuery.of(context).size.width * 0.8),
child: Padding(
padding: const EdgeInsets.symmetric(
horizontal: Spacing.level5,
vertical: Spacing.level3,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_ArtefactHeader(title: artefact.name),
const SizedBox(height: Spacing.level4),
_ArtefactInfoSection(artefact: artefact),
const SizedBox(height: Spacing.level4),
Expanded(child: _EnvironmentsSection(artefact: artefact)),
],
return SelectionArea(
child: Dialog(
child: SizedBox(
height: min(800, MediaQuery.of(context).size.height * 0.8),
width: min(1200, MediaQuery.of(context).size.width * 0.8),
child: Padding(
padding: const EdgeInsets.symmetric(
horizontal: Spacing.level5,
vertical: Spacing.level3,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_ArtefactHeader(title: artefact.name),
const SizedBox(height: Spacing.level4),
_ArtefactInfoSection(artefact: artefact),
const SizedBox(height: Spacing.level4),
Expanded(child: _EnvironmentsSection(artefact: artefact)),
],
),
),
),
),
Expand Down

0 comments on commit a6ab065

Please sign in to comment.