Style cleaning and initial text size audit (#618)

* Style cleaning and initial text size audit

* Put file back
zio/stable
Ollie H 2023-05-15 11:14:45 -07:00 committed by GitHub
parent 841ad692d3
commit 824a2313b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 22 additions and 19 deletions

View File

@ -61,7 +61,6 @@ export const Gallery = observer(function ({gallery}: Props) {
borderRadius: 5, borderRadius: 5,
paddingHorizontal: 10, paddingHorizontal: 10,
position: 'absolute' as const, position: 'absolute' as const,
width: 46,
zIndex: 1, zIndex: 1,
...(isOverflow ...(isOverflow
? { ? {
@ -112,11 +111,11 @@ export const Gallery = observer(function ({gallery}: Props) {
testID="altTextButton" testID="altTextButton"
accessibilityRole="button" accessibilityRole="button"
accessibilityLabel="Add alt text" accessibilityLabel="Add alt text"
accessibilityHint="Opens modal for inputting image alt text" accessibilityHint=""
onPress={() => { onPress={() => {
handleAddImageAltText(image) handleAddImageAltText(image)
}} }}
style={[styles.imageControl, imageControlLabelStyle]}> style={imageControlLabelStyle}>
<Text style={styles.imageControlTextContent}>ALT</Text> <Text style={styles.imageControlTextContent}>ALT</Text>
</TouchableOpacity> </TouchableOpacity>
<View style={imageControlsSubgroupStyle}> <View style={imageControlsSubgroupStyle}>
@ -187,9 +186,14 @@ const styles = StyleSheet.create({
justifyContent: 'center', justifyContent: 'center',
}, },
imageControlTextContent: { imageControlTextContent: {
borderRadius: 6,
color: 'white', color: 'white',
fontSize: 12, fontSize: 12,
fontWeight: 'bold', fontWeight: 'bold',
letterSpacing: 1, letterSpacing: 1,
backgroundColor: 'rgba(0, 0, 0, 0.75)',
borderWidth: 0.5,
paddingHorizontal: 10,
paddingVertical: 3,
}, },
}) })

View File

@ -144,8 +144,11 @@ export function Component({onChanged}: {onChanged: () => void}) {
</Text> </Text>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
<Text type="2xl-bold" style={[styles.titleMiddle, pal.text]}> <Text
Change my handle type="2xl-bold"
style={[styles.titleMiddle, pal.text]}
numberOfLines={1}>
Change handle
</Text> </Text>
<View style={styles.titleRight}> <View style={styles.titleRight}>
{isProcessing ? ( {isProcessing ? (

View File

@ -22,7 +22,7 @@ import {
View, View,
ViewProps, ViewProps,
} from 'react-native' } from 'react-native'
import {addStyle, colors} from 'lib/styles' import {addStyle} from 'lib/styles'
import {usePalette} from 'lib/hooks/usePalette' import {usePalette} from 'lib/hooks/usePalette'
interface AddedProps { interface AddedProps {
@ -124,12 +124,6 @@ const styles = StyleSheet.create({
marginLeft: 'auto', marginLeft: 'auto',
marginRight: 'auto', marginRight: 'auto',
}, },
containerLight: {
backgroundColor: colors.gray1,
},
containerDark: {
backgroundColor: colors.gray7,
},
fixedHeight: { fixedHeight: {
height: '100vh', height: '100vh',
}, },

View File

@ -339,7 +339,9 @@ const DropdownItems = ({
color={pal.text.color as string} color={pal.text.color as string}
/> />
)} )}
<Text style={[styles.label, pal.text]}>{item.label}</Text> <Text style={[styles.label, pal.text]} numberOfLines={1}>
{item.label}
</Text>
</TouchableOpacity> </TouchableOpacity>
) )
} else if (isSep(item)) { } else if (isSep(item)) {

View File

@ -63,6 +63,5 @@ const styles = StyleSheet.create({
position: 'absolute', position: 'absolute',
left: 6, left: 6,
bottom: 6, bottom: 6,
width: 46,
}, },
}) })

View File

@ -184,6 +184,5 @@ const styles = StyleSheet.create({
position: 'absolute', position: 'absolute',
left: 6, left: 6,
bottom: 6, bottom: 6,
width: 46,
}, },
}) })

View File

@ -140,8 +140,8 @@ function AppPasswordsHeader() {
pal.text, pal.text,
isDesktopWeb && styles.descriptionDesktop, isDesktopWeb && styles.descriptionDesktop,
]}> ]}>
These passwords can be used to log onto Bluesky in other apps without Use app passwords to login to other Bluesky clients without giving full
giving them full access to your account or your password. access to your account or password.
</Text> </Text>
</> </>
) )
@ -289,5 +289,6 @@ const styles = StyleSheet.create({
trashIcon: { trashIcon: {
color: 'red', color: 'red',
minWidth: 16,
}, },
}) })

View File

@ -331,8 +331,8 @@ export const SettingsScreen = withAuthRequired(
style={pal.text as FontAwesomeIconStyle} style={pal.text as FontAwesomeIconStyle}
/> />
</View> </View>
<Text type="lg" style={pal.text}> <Text type="lg" style={pal.text} numberOfLines={1}>
Change my handle Change handle
</Text> </Text>
</TouchableOpacity> </TouchableOpacity>
<View style={styles.spacer20} /> <View style={styles.spacer20} />

View File

@ -424,6 +424,7 @@ const styles = StyleSheet.create({
flex: 1, flex: 1,
paddingTop: 20, paddingTop: 20,
paddingBottom: 50, paddingBottom: 50,
maxWidth: 300,
}, },
viewDarkMode: { viewDarkMode: {
backgroundColor: '#1B1919', backgroundColor: '#1B1919',