diff options
author | Ollie H <renahlee@outlook.com> | 2023-05-02 21:00:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 23:00:18 -0500 |
commit | 95f8360d19938d00aaf9036a76616a7b82093703 (patch) | |
tree | 30c405a73df2d3f2cfeda6e4f4d044e5903ac12c /src/view/com/util/forms/ToggleButton.tsx | |
parent | af905947bc4835cfff6f748851c95ac75cb7fb23 (diff) | |
download | voidsky-95f8360d19938d00aaf9036a76616a7b82093703.tar.zst |
Add keyboard shortcuts: new, escape, and hard break (#552)
* Add keyboard shortcuts: new, escape, and hard break * Add preferences modal * Remove code accidentally re-added due to rebase * Fix incorrect copy and lint * Put stuff back so diffs are clearer * Re-add invite codes to settings * Address comments * Tune the copy --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src/view/com/util/forms/ToggleButton.tsx')
-rw-r--r-- | src/view/com/util/forms/ToggleButton.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/view/com/util/forms/ToggleButton.tsx b/src/view/com/util/forms/ToggleButton.tsx index a6e0ba3fe..804d414b3 100644 --- a/src/view/com/util/forms/ToggleButton.tsx +++ b/src/view/com/util/forms/ToggleButton.tsx @@ -142,9 +142,11 @@ export function ToggleButton({ ]} /> </View> - <Text type="button" style={[labelStyle, styles.label]}> - {label} - </Text> + {label === '' ? null : ( + <Text type="button" style={[labelStyle, styles.label]}> + {label} + </Text> + )} </View> </Button> ) @@ -154,6 +156,7 @@ const styles = StyleSheet.create({ outer: { flexDirection: 'row', alignItems: 'center', + gap: 10, }, circle: { width: 42, @@ -161,7 +164,6 @@ const styles = StyleSheet.create({ borderRadius: 15, padding: 4, borderWidth: 1, - marginRight: 10, }, circleFill: { width: 16, |