Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function MoreFeaturesSection({title, children}: MoreFeaturesSectionProps) {
return (
<View style={[styles.mt3, shouldUseNarrowLayout ? styles.workspaceSectionMobile : {}]}>
<Section
containerStyles={[styles.ph1, styles.pv0, styles.bgTransparent, styles.noBorderRadius]}
containerStyles={[styles.ph0, styles.pv0, styles.bgTransparent, styles.noBorderRadius]}
childrenStyles={[styles.flexRow, styles.flexWrap, styles.columnGap3]}
renderTitle={() => (
<Text
Expand Down
2 changes: 1 addition & 1 deletion src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6541,7 +6541,7 @@ const staticStyles = (theme: ThemeColors) =>
flexDirection: 'row',
alignItems: 'center',
gap: variables.componentBorderRadius,
marginBottom: variables.sectionMargin,
marginBottom: 16,
},
chartTitle: {
...FontUtils.fontFamily.platform.EXP_NEUE_BOLD,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ CONSISTENCY-2 (docs)

This line replaces the named reference variables.sectionMargin with a hardcoded magic number 16. The value 16 is not self-explanatory in this context and is no longer tied to any documented constant, so a future reader cannot tell whether it is intentionally decoupled from sectionMargin (now 20) or an oversight. Since sectionMargin was intentionally bumped to 20, hardcoding 16 here silently freezes the old spacing without explanation.

Introduce a named constant for the chart header spacing (or reuse an existing one that semantically represents this value) instead of a bare literal:

// in variables.ts
chartHeaderMargin: 16,

// in index.ts chartHeader
marginBottom: variables.chartHeaderMargin,

If the intent is truly to keep the pre-bump spacing, add a comment explaining why this section must stay at 16 while sectionMargin is 20.


Reviewed at: b5869e4 | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.

Expand Down
2 changes: 1 addition & 1 deletion src/styles/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export default {
modalRightDockedZIndex: 9997,
modalLowestZIndex: 9996,
workspaceTypeIconWidth: 34,
sectionMargin: 16,
sectionMargin: 20,
workspaceSectionMaxWidth: 680,
sectionIllustrationHeight: 220,
tripsIllustrationW: 168,
Expand Down
Loading