diff --git a/ui/lib/main.dart b/ui/lib/main.dart index b97f920..34bd22f 100644 --- a/ui/lib/main.dart +++ b/ui/lib/main.dart @@ -186,16 +186,13 @@ class _MainSkeletonState extends State { backgroundColor: Theme.of(context).colorScheme.inversePrimary, // Here we take the value from the MyHomePage object that was created by // the App.build method, and use it to set our appbar title. - title: const Row( - children: [ - Text("Polaris"), - ], - ), + title: Text("Polaris"), + actions: [ SearchAnchor( builder: (BuildContext context, SearchController controller) { return Container( - constraints: const BoxConstraints(maxWidth: 300, maxHeight: 40), + constraints: const BoxConstraints(maxWidth: 250, maxHeight: 40), child: Opacity( opacity: 0.8, child: SearchBar( diff --git a/ui/lib/settings/settings.dart b/ui/lib/settings/settings.dart index 889e73f..775e7d1 100644 --- a/ui/lib/settings/settings.dart +++ b/ui/lib/settings/settings.dart @@ -45,14 +45,14 @@ class _SystemSettingsPageState extends ConsumerState { ), ExpansionTile( expandedAlignment: Alignment.centerLeft, - childrenPadding: EdgeInsets.fromLTRB(20, 0, 50, 0), + childrenPadding: EdgeInsets.fromLTRB(20, 0, 20, 0), initiallyExpanded: false, title: Text("存储"), children: [StorageSettings()], ), ExpansionTile( expandedAlignment: Alignment.centerLeft, - childrenPadding: EdgeInsets.fromLTRB(20, 0, 50, 0), + childrenPadding: EdgeInsets.fromLTRB(20, 0, 20, 0), initiallyExpanded: false, title: Text("通知客户端"), children: [NotifierSettings()], diff --git a/ui/lib/widgets/detail_card.dart b/ui/lib/widgets/detail_card.dart index 03b9ef7..5e33f29 100644 --- a/ui/lib/widgets/detail_card.dart +++ b/ui/lib/widgets/detail_card.dart @@ -38,8 +38,7 @@ class _DetailCardState extends ConsumerState { margin: const EdgeInsets.all(4), clipBehavior: Clip.hardEdge, child: Container( - constraints: - BoxConstraints(maxHeight: 400), + constraints: BoxConstraints(maxHeight: 400), decoration: BoxDecoration( image: DecorationImage( fit: BoxFit.cover, @@ -91,16 +90,16 @@ class _DetailCardState extends ConsumerState { clipBehavior: Clip.hardEdge, shape: ContinuousRectangleBorder( borderRadius: BorderRadius.circular(100.0)), - label: Text("${widget.details.resolution}"), + label: Text( + "${widget.details.storage!.name}: ${widget.details.mediaType == "tv" ? widget.details.storage!.tvPath : widget.details.storage!.moviePath}" + "${widget.details.targetDir}"), padding: EdgeInsets.all(0), ), Chip( clipBehavior: Clip.hardEdge, shape: ContinuousRectangleBorder( borderRadius: BorderRadius.circular(100.0)), - label: Text( - "${widget.details.storage!.name}: ${widget.details.mediaType == "tv" ? widget.details.storage!.tvPath : widget.details.storage!.moviePath}" - "${widget.details.targetDir}"), + label: Text("${widget.details.resolution}"), padding: EdgeInsets.all(0), ), widget.details.limiter != null && @@ -139,7 +138,7 @@ class _DetailCardState extends ConsumerState { ) ], ), - const Text("",style: TextStyle(height: 1)), + const Text("", style: TextStyle(height: 1)), Expanded( child: Text( overflow: TextOverflow.ellipsis,