Fix text not wrapping in social proof (#7920)
* Fix text not wrapping in social proof * fix web too * add max_w_full atom
This commit is contained in:
+7
-1
@@ -70,7 +70,7 @@ export const atoms = {
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Width
|
* Width & Height
|
||||||
*/
|
*/
|
||||||
w_full: {
|
w_full: {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
@@ -81,6 +81,12 @@ export const atoms = {
|
|||||||
h_full_vh: web({
|
h_full_vh: web({
|
||||||
height: '100vh',
|
height: '100vh',
|
||||||
}),
|
}),
|
||||||
|
max_w_full: {
|
||||||
|
maxWidth: '100%',
|
||||||
|
},
|
||||||
|
max_h_full: {
|
||||||
|
maxHeight: '100%',
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used for the outermost components on screens, to ensure that they can fill
|
* Used for the outermost components on screens, to ensure that they can fill
|
||||||
|
|||||||
@@ -127,6 +127,7 @@ function KnownFollowersInner({
|
|||||||
onPress={onLinkPress}
|
onPress={onLinkPress}
|
||||||
to={makeProfileLink(profile, 'known-followers')}
|
to={makeProfileLink(profile, 'known-followers')}
|
||||||
style={[
|
style={[
|
||||||
|
a.max_w_full,
|
||||||
a.flex_row,
|
a.flex_row,
|
||||||
minimal ? a.gap_sm : a.gap_md,
|
minimal ? a.gap_sm : a.gap_md,
|
||||||
a.align_center,
|
a.align_center,
|
||||||
@@ -171,6 +172,7 @@ function KnownFollowersInner({
|
|||||||
|
|
||||||
<Text
|
<Text
|
||||||
style={[
|
style={[
|
||||||
|
a.flex_shrink,
|
||||||
textStyle,
|
textStyle,
|
||||||
hovered && {
|
hovered && {
|
||||||
textDecorationLine: 'underline',
|
textDecorationLine: 'underline',
|
||||||
|
|||||||
Reference in New Issue
Block a user