···3333 a.relative,
3434 a.justify_center,
3535 align === 'right' ? a.align_end : a.align_start,
3636- width === undefined ? {opacity: 0} : {minWidth: width},
3636+ {minWidth: width ?? iconSizes[ICON_SIZE]},
3737 ]}>
3838 <PrivacySensitive
3939 style={[
···4646 // when finding the size of the button, we need the containing
4747 // element to have a concrete size otherwise the text will
4848 // collapse to 0 width. so set it to a really big number
4949- // and hide the entire thing (see above)
5050- width === undefined && {width: 10000},
4949+ // and just use `pointer-events: box-none` so it doesn't interfere with the UI
5050+ {width: 1000},
5151+ a.pointer_events_box_none,
5152 ]}>
5253 <View
5354 onLayout={evt => setWidth(evt.nativeEvent.layout.width)}
5455 style={[
5556 t.atoms.bg,
5656- // make sure it covers the icon! the won't always be a button
5757+ // make sure it covers the icon! children might be undefined
5758 {minWidth: iconSizes[ICON_SIZE], minHeight: iconSizes[ICON_SIZE]},
5859 ]}>
5960 {children}