Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: update spacing and remove cross icon from top right

Prateek Sunal9251e4f5b6fa
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arb
index 825cbe44fb..477cd4f257 100644
--- a/mobile/apps/photos/lib/l10n/intl_en.arb
+++ b/mobile/apps/photos/lib/l10n/intl_en.arb
@@ -1831,7 +1831,7 @@
"videosProcessed": "Videos processed",
"totalVideos": "Total videos",
"skippedVideos": "Skipped videos",
- "videoStreamingDescription": "Play videos instantly on any device. Enable to process video streams on this device.",
+ "videoStreamingDescription": "Play videos instantly on any device.\nEnable to process video streams on this device.",
"videoStreamingNote": "Only videos from last 60 days and under 1 minute are processed on this device. For older/longer videos, enable streaming in the desktop app.",
"createStream": "Create stream",
"recreateStream": "Recreate stream",
@@ -1942,4 +1942,4 @@
"almostDone": "Almost done",
"processingLocally": "Processing locally",
"useMLToFindSimilarImages": "Use ML to find images that look similar to each other."
-}
+}
\ No newline at end of file
diff --git a/mobile/apps/photos/lib/ui/settings/streaming/video_streaming_settings_page.dart b/mobile/apps/photos/lib/ui/settings/streaming/video_streaming_settings_page.dart
index 9c82ec1647..0f549dedba 100644
--- a/mobile/apps/photos/lib/ui/settings/streaming/video_streaming_settings_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/streaming/video_streaming_settings_page.dart
@@ -12,7 +12,6 @@ import "package:photos/theme/ente_theme.dart";
import "package:photos/ui/common/loading_widget.dart";
import "package:photos/ui/common/web_page.dart";
import "package:photos/ui/components/buttons/button_widget.dart";
-import "package:photos/ui/components/buttons/icon_button_widget.dart";
import "package:photos/ui/components/captioned_text_widget.dart";
import "package:photos/ui/components/menu_item_widget/menu_item_widget.dart";
import "package:photos/ui/components/models/button_type.dart";
@@ -49,7 +48,8 @@ class _VideoStreamingSettingsPageState
bottomNavigationBar: !hasEnabled
? SafeArea(
child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 16),
+ padding: const EdgeInsets.symmetric(horizontal: 16)
+ .copyWith(bottom: 20),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
@@ -75,15 +75,7 @@ class _VideoStreamingSettingsPageState
flexibleSpaceTitle: TitleBarTitleWidget(
title: AppLocalizations.of(context).videoStreaming,
),
- actionIcons: [
- IconButtonWidget(
- icon: Icons.close_outlined,
- iconButtonType: IconButtonType.secondary,
- onTap: () {
- Navigator.popUntil(context, (route) => route.isFirst);
- },
- ),
- ],
+ actionIcons: const [],
isSliver: false,
),
),
@@ -96,17 +88,7 @@ class _VideoStreamingSettingsPageState
flexibleSpaceTitle: TitleBarTitleWidget(
title: AppLocalizations.of(context).videoStreaming,
),
- actionIcons: [
- IconButtonWidget(
- icon: Icons.close_outlined,
- iconButtonType: IconButtonType.secondary,
- onTap: () {
- Navigator.pop(context);
- if (Navigator.canPop(context)) Navigator.pop(context);
- if (Navigator.canPop(context)) Navigator.pop(context);
- },
- ),
- ],
+ actionIcons: const [],
),
SliverToBoxAdapter(
child: Container(
@@ -159,24 +141,27 @@ class _VideoStreamingSettingsPageState
height: 160,
),
const SizedBox(height: 16),
- Text.rich(
- TextSpan(
- text: AppLocalizations.of(context)
- .videoStreamingDescription +
- " ",
- children: [
- TextSpan(
- text: AppLocalizations.of(context).moreDetails,
- style: TextStyle(
- color: getEnteColorScheme(context).primary500,
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 12),
+ child: Text.rich(
+ TextSpan(
+ text: AppLocalizations.of(context)
+ .videoStreamingDescription +
+ "\n",
+ children: [
+ TextSpan(
+ text: AppLocalizations.of(context).moreDetails,
+ style: TextStyle(
+ color: getEnteColorScheme(context).primary500,
+ ),
+ recognizer: TapGestureRecognizer()
+ ..onTap = openHelp,
),
- recognizer: TapGestureRecognizer()
- ..onTap = openHelp,
- ),
- ],
+ ],
+ ),
+ style: getEnteTextTheme(context).smallMuted,
+ textAlign: TextAlign.center,
),
- style: getEnteTextTheme(context).smallMuted,
- textAlign: TextAlign.center,
),
const SizedBox(height: 140),
],