Skip to content

Commit fca3189

Browse files
committed
fix: subpage block padding
1 parent e63f767 commit fca3189

File tree

4 files changed

+47
-29
lines changed

4 files changed

+47
-29
lines changed

frontend/appflowy_flutter/ios/Podfile.lock

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -175,37 +175,37 @@ EXTERNAL SOURCES:
175175
:path: ".symlinks/plugins/webview_flutter_wkwebview/ios"
176176

177177
SPEC CHECKSUMS:
178-
app_links: e70ca16b4b0f88253b3b3660200d4a10b4ea9795
179-
appflowy_backend: 144c20d8bfb298c4e10fa3fa6701a9f41bf98b88
180-
connectivity_plus: bf0076dd84a130856aa636df1c71ccaff908fa1d
181-
device_info_plus: 97af1d7e84681a90d0693e63169a5d50e0839a0d
178+
app_links: c5161ac5ab5383ad046884568b4b91cb52df5d91
179+
appflowy_backend: 78f6a053f756e6bc29bcc5a2106cbe77b756e97a
180+
connectivity_plus: 481668c94744c30c53b8895afb39159d1e619bdf
181+
device_info_plus: 71ffc6ab7634ade6267c7a93088ed7e4f74e5896
182182
DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac
183183
DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
184-
file_picker: 09aa5ec1ab24135ccd7a1621c46c84134bfd6655
185-
flowy_infra_ui: 0455e1fa8c51885aa1437848e361e99419f34ebc
184+
file_picker: 9b3292d7c8bc68c8a7bf8eb78f730e49c8efc517
185+
flowy_infra_ui: 931b73a18b54a392ab6152eebe29a63a30751f53
186186
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
187-
fluttertoast: e9a18c7be5413da53898f660530c56f35edfba9c
188-
image_picker_ios: c560581cceedb403a6ff17f2f816d7fea1421fc1
189-
integration_test: ce0a3ffa1de96d1a89ca0ac26fca7ea18a749ef4
190-
irondash_engine_context: 3458bf979b90d616ffb8ae03a150bafe2e860cc9
191-
keyboard_height_plugin: 43fa8bba20fd5c4fdeed5076466b8b9d43cc6b86
192-
open_filex: 6e26e659846ec990262224a12ef1c528bb4edbe4
193-
package_info_plus: 58f0028419748fad15bf008b270aaa8e54380b1c
194-
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
195-
permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2
187+
fluttertoast: 76fea30fcf04176325f6864c87306927bd7d2038
188+
image_picker_ios: 7fe1ff8e34c1790d6fff70a32484959f563a928a
189+
integration_test: d5929033778cc4991a187e4e1a85396fa4f59b3a
190+
irondash_engine_context: 8e58ca8e0212ee9d1c7dc6a42121849986c88486
191+
keyboard_height_plugin: ef70a8181b29f27670e9e2450814ca6b6dc05b05
192+
open_filex: 432f3cd11432da3e39f47fcc0df2b1603854eff1
193+
package_info_plus: 580e9a5f1b6ca5594e7c9ed5f92d1dfb2a66b5e1
194+
path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
195+
permission_handler_apple: 4ed2196e43d0651e8ff7ca3483a069d469701f2d
196196
ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
197197
SDWebImage: b9a731e1d6307f44ca703b3976d18c24ca561e84
198198
Sentry: 1fe34e9c2cbba1e347623610d26db121dcb569f1
199-
sentry_flutter: a39c2a2d67d5e5b9cb0b94a4985c76dd5b3fc737
200-
share_plus: 8875f4f2500512ea181eef553c3e27dba5135aad
201-
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
202-
sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec
203-
super_native_extensions: 4916b3c627a9c7fffdc48a23a9eca0b1ac228fa7
199+
sentry_flutter: e24b397f9a61fa5bbefd8279c3b2242ca86faa90
200+
share_plus: 011d6fb4f9d2576b83179a3a5c5e323202cdabcf
201+
shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
202+
sqflite: c35dad70033b8862124f8337cc994a809fcd9fa3
203+
super_native_extensions: b763c02dc3a8fd078389f410bf15149179020cb4
204204
SwiftyGif: 6c3eafd0ce693cad58bb63d2b2fb9bacb8552780
205205
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
206-
url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe
207-
webview_flutter_wkwebview: 2a23822e9039b7b1bc52e5add778e5d89ad488d1
206+
url_launcher_ios: 694010445543906933d732453a59da0a173ae33d
207+
webview_flutter_wkwebview: 45a041c7831641076618876de3ba75c712860c6b
208208

209209
PODFILE CHECKSUM: d0d9b4ff572d8695c38eb3f9b490f55cdfc57eca
210210

211-
COCOAPODS: 1.15.2
211+
COCOAPODS: 1.16.2

frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,12 @@ DatabaseViewBlockComponentBuilder _buildDatabaseViewBlockComponentBuilder(
670670
) {
671671
return DatabaseViewBlockComponentBuilder(
672672
configuration: configuration.copyWith(
673-
padding: (_) => const EdgeInsets.symmetric(vertical: 10),
673+
padding: (node) {
674+
if (UniversalPlatform.isMobile) {
675+
return configuration.padding(node);
676+
}
677+
return const EdgeInsets.symmetric(vertical: 10);
678+
},
674679
),
675680
);
676681
}
@@ -873,6 +878,12 @@ SubPageBlockComponentBuilder _buildSubPageBlockComponentBuilder(
873878
return SubPageBlockComponentBuilder(
874879
configuration: configuration.copyWith(
875880
textStyle: (node) => styleCustomizer.subPageBlockTextStyleBuilder(),
881+
padding: (node) {
882+
if (UniversalPlatform.isMobile) {
883+
return const EdgeInsets.symmetric(horizontal: 18);
884+
}
885+
return configuration.padding(node);
886+
},
876887
),
877888
);
878889
}

frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/math_equation/math_equation_block_component.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,6 @@ class MathEquationBlockComponentWidgetState
153153
),
154154
);
155155

156-
child = Padding(
157-
padding: padding,
158-
child: child,
159-
);
160-
161156
if (widget.showActions && widget.actionBuilder != null) {
162157
child = BlockComponentActionWrapper(
163158
node: node,
@@ -174,6 +169,11 @@ class MathEquationBlockComponentWidgetState
174169
);
175170
}
176171

172+
child = Padding(
173+
padding: padding,
174+
child: child,
175+
);
176+
177177
if (UniversalPlatform.isDesktopOrWeb) {
178178
child = Stack(
179179
children: [

frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/sub_page/sub_page_block_component.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,13 @@ class SubPageBlockComponentState extends State<SubPageBlockComponent>
299299
);
300300
}
301301

302+
if (UniversalPlatform.isMobile) {
303+
child = Padding(
304+
padding: padding,
305+
child: child,
306+
);
307+
}
308+
302309
return child;
303310
},
304311
);

0 commit comments

Comments
 (0)