Skip to content

Commit

Permalink
style(app): fixes various styling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert27 committed Oct 21, 2024
1 parent ca19292 commit ffae4e8
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ android {
applicationId 'app.neuland'
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 179
versionCode 180
versionName "0.10.0"
}
signingConfigs {
Expand Down
2 changes: 1 addition & 1 deletion app.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"android": {
"package": "app.neuland",
"userInterfaceStyle": "automatic",
"versionCode": 179,
"versionCode": 180,
"splash": {
"image": "./src/assets/splash/splashLight.png",
"resizeMode": "contain",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"format": "prettier --write .",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"licences": "npm-license-crawler -onlyDirectDependencies -json src/data/licenses.json",
"licences": "npm-license-crawler -onlyDirectDependencies -json src/data/licenses.json --exclude docs/",
"prepare": "husky"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions src/app/(screens)/lecturer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function LecturerDetail(): JSX.Element {
title: t('pages.lecturer.contact.room'),
value: lecturer?.room_short,
disabled: lecturer?.room_short === '',
iconColor: colors.primary,
textColor: colors.primary,
onPress: () => {
updateRouteParams(lecturer?.room_short ?? '')
router.navigate('(tabs)/map')
Expand All @@ -77,7 +77,7 @@ export default function LecturerDetail(): JSX.Element {
title: t('pages.lecturer.contact.phone'),
value: lecturer?.tel_dienst,
disabled: lecturer?.tel_dienst === '',
iconColor: colors.primary,
textColor: colors.primary,
onPress: () => {
void Linking.openURL(
`tel:${
Expand All @@ -91,7 +91,7 @@ export default function LecturerDetail(): JSX.Element {
value: lecturer?.email,
disabled: validEmail,
layout: validEmail ? 'column' : 'row',
iconColor:
textColor:
(lecturer?.email.includes('@') ?? false)
? colors.primary
: undefined,
Expand Down
4 changes: 3 additions & 1 deletion src/app/(screens)/lecturers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,11 @@ export default function LecturersCard(): JSX.Element {
keyExtractor={(_, index) => index.toString()}
contentContainerStyle={{
marginHorizontal: PAGE_PADDING,

backgroundColor: colors.card,
...styles.loadedRows,
}}
contentInsetAdjustmentBehavior="always"
refreshControl={
<RefreshControl
refreshing={
Expand Down Expand Up @@ -570,7 +572,7 @@ const styles = StyleSheet.create({
paddingVertical: 8,
paddingHorizontal: 4,
},
searchContainer: { flex: 1, gap: 10 },
searchContainer: { flex: 1, gap: 10, paddingTop: 4 },
resultsCountContainer: {
position: 'absolute',
right: 0,
Expand Down
2 changes: 1 addition & 1 deletion src/app/(screens)/meal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export default function FoodDetail(): JSX.Element {
restaurant as keyof typeof humanLocations
],
onPress: handlePress,
iconColor: locationExists ? colors.primary : undefined,
textColor: locationExists ? colors.primary : undefined,
disabled: !locationExists,
},
{
Expand Down
3 changes: 2 additions & 1 deletion src/components/Elements/Universal/FormList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ const styles = StyleSheet.create({
flexDirection: 'column',
alignItems: 'flex-start',
paddingHorizontal: 15,
marginVertical: 23,
marginVertical: 13,
},
blockFooter: {
fontSize: 12,
Expand All @@ -292,6 +292,7 @@ const styles = StyleSheet.create({
},
columnDetails: {
textAlign: 'left',
paddingTop: 2,
fontSize: 16,
},
})
Expand Down
2 changes: 1 addition & 1 deletion src/components/allCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const AllCards: Card[] = [
{
key: 'food',
removable: true,
default: [USER_GUEST],
default: [USER_GUEST, USER_STUDENT, USER_EMPLOYEE],
card: () => <FoodCard />,
},
{
Expand Down
10 changes: 2 additions & 8 deletions src/data/licenses.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"licenseUrl": "https://github.com/expo/vector-icons/raw/master/LICENSE",
"parents": "neuland"
},
"@gorhom/[email protected].2": {
"@gorhom/[email protected].4": {
"licenses": "MIT",
"repository": "https://github.com/gorhom/react-native-bottom-sheet",
"licenseUrl": "https://github.com/gorhom/react-native-bottom-sheet/raw/master/LICENSE",
Expand Down Expand Up @@ -185,12 +185,6 @@
"licenseUrl": "https://github.com/expo/expo",
"parents": "neuland"
},
"[email protected]": {
"licenses": "MIT",
"repository": "https://github.com/expressjs/express",
"licenseUrl": "https://github.com/expressjs/express/raw/master/LICENSE",
"parents": "neuland-next-docs"
},
"[email protected]": {
"licenses": "Apache-2.0",
"repository": "https://github.com/krisk/Fuse",
Expand All @@ -209,7 +203,7 @@
"licenseUrl": "https://github.com/graphql/graphql-js/raw/master/LICENSE",
"parents": "neuland"
},
"[email protected].1": {
"[email protected].2": {
"licenses": "MIT",
"repository": "https://github.com/i18next/i18next",
"licenseUrl": "https://github.com/i18next/i18next/raw/master/LICENSE",
Expand Down

0 comments on commit ffae4e8

Please sign in to comment.