Skip to content

armgit / ente

Public Imported from GitHub
0

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

Changes to layout

ashilkna8cea175927e
diff --git a/lib/ui/search_tab.dart b/lib/ui/search_tab.dart
index 5a594ecbab..0b7fea71f2 100644
--- a/lib/ui/search_tab.dart
+++ b/lib/ui/search_tab.dart
@@ -20,21 +20,14 @@ class _SearchTabState extends State<SearchTab> {
@override
Widget build(BuildContext context) {
- return const Padding(
- padding: EdgeInsets.only(
- left: 12.0,
- right: 12.0,
- bottom: 100,
- ),
- child: Column(
- children: [
- Align(
- alignment: Alignment.topRight,
- child: SearchIconWidget(),
- ),
- AllSearchSections(),
- ],
- ),
+ return const Column(
+ children: [
+ Align(
+ alignment: Alignment.topRight,
+ child: SearchIconWidget(),
+ ),
+ AllSearchSections(),
+ ],
);
}
diff --git a/lib/ui/viewer/search/search_section.dart b/lib/ui/viewer/search/search_section.dart
index c2dfb5f2be..8be32d8f92 100644
--- a/lib/ui/viewer/search/search_section.dart
+++ b/lib/ui/viewer/search/search_section.dart
@@ -20,26 +20,30 @@ class SearchSection extends StatelessWidget {
Widget build(BuildContext context) {
debugPrint("Building section for ${sectionType.name}");
final textTheme = getEnteTextTheme(context);
- return Padding(
- padding: const EdgeInsets.symmetric(vertical: 16.0),
- child: Expanded(
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- sectionType.sectionTitle(context),
- style: textTheme.largeBold,
- ),
- const SizedBox(height: 16),
- // wrap below text in next line
- // Text(
- // sectionType.getEmptyStateText(context),
- // style: textTheme.smallMuted,
- // softWrap: true,
- // ),
- SearchExampleRow(examples, sectionType),
- ],
- ),
+ return Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: [
+ Padding(
+ padding: const EdgeInsets.all(12),
+ child: Text(
+ sectionType.sectionTitle(context),
+ style: textTheme.largeBold,
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 2),
+ // wrap below text in next line
+ // Text(
+ // sectionType.getEmptyStateText(context),
+ // style: textTheme.smallMuted,
+ // softWrap: true,
+ // ),
+ SearchExampleRow(examples, sectionType),
+ ],
),
);
}
@@ -82,9 +86,9 @@ class SearchExample extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SizedBox(
- width: 84,
+ width: 85,
child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 8),
+ padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 10),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [