Make ToggleButton full width everywhere (#6302)

* Fix 'Show badge' button label being cut off (#6215)

* Make em full width

---------

Co-authored-by: Khuddite <62555977+khuddite@users.noreply.github.com>
This commit is contained in:
Eric Bailey
2024-11-13 15:55:19 -06:00
committed by GitHub
parent 9640f08b8d
commit 5f7caf3010
@@ -22,7 +22,7 @@ export function Outer({children}: React.PropsWithChildren<{}>) {
<View <View
style={[ style={[
a.flex_row, a.flex_row,
a.gap_md, a.gap_sm,
a.px_lg, a.px_lg,
a.py_lg, a.py_lg,
a.justify_between, a.justify_between,
@@ -74,10 +74,9 @@ export function Buttons({
hideLabel?: string hideLabel?: string
}) { }) {
const {_} = useLingui() const {_} = useLingui()
const {gtPhone} = useBreakpoints()
return ( return (
<View style={[{minHeight: 35}, gtPhone ? undefined : a.w_full]}> <View style={[{minHeight: 35}, a.w_full]}>
<ToggleButton.Group <ToggleButton.Group
label={_( label={_(
msg`Configure content filtering setting for category: ${name}`, msg`Configure content filtering setting for category: ${name}`,
@@ -259,7 +258,7 @@ export function LabelerLabelPreference({
</Content> </Content>
{showConfig && ( {showConfig && (
<View style={[gtPhone ? undefined : a.w_full]}> <>
{cantConfigure ? ( {cantConfigure ? (
<View <View
style={[ style={[
@@ -290,7 +289,7 @@ export function LabelerLabelPreference({
hideLabel={hideLabel} hideLabel={hideLabel}
/> />
)} )}
</View> </>
)} )}
</Outer> </Outer>
) )