Skip to content

Commit

Permalink
Push the "settings" button to the end of the row
Browse files Browse the repository at this point in the history
  • Loading branch information
personalizedrefrigerator committed Dec 10, 2024
1 parent 1576ca0 commit e795808
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions packages/app-mobile/components/EditorToolbar/EditorToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ const useStyles = (themeId: number) => {
backgroundColor: theme.backgroundColor3,
},
contentContainer: {
flexGrow: 1,
paddingVertical: 0,
flexDirection: 'row',
},
spacer: {
flexGrow: 1,
},
});
}, [themeId]);
};
Expand Down Expand Up @@ -87,14 +91,14 @@ const EditorToolbar: React.FC<Props> = props => {
ref={scrollViewRef}
horizontal={true}
style={styles.content}
contentContainerStyle={styles.contentContainer}
>
<View style={styles.contentContainer}>
{buttonGroups.map(renderGroup)}
<SettingButton
setSettingsVisible={setSettingsVisible}
themeId={props.themeId}
/>
</View>
{buttonGroups.map(renderGroup)}
<View style={styles.spacer}/>
<SettingButton
setSettingsVisible={setSettingsVisible}
themeId={props.themeId}
/>
</ScrollView>
</ToggleSpaceButton>
<ToolbarEditorDialog visible={settingsVisible} onDismiss={onDismissSettingsDialog} />
Expand Down

0 comments on commit e795808

Please sign in to comment.