Skip to content

Commit

Permalink
fix: fix some ui stuff in settings page (#644)
Browse files Browse the repository at this point in the history
* fix: fix some ui stuff in settings page

* fix: fix details

* feat: adjust
  • Loading branch information
SunnyCloudYang authored Oct 31, 2024
1 parent 94d0a3c commit daea785
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/thu-info-app/src/ui/settings/feedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const FeedbackScreen = ({navigation}: {navigation: RootNav}) => {
marginVertical: 8,
marginEnd: 8,
paddingHorizontal: 12,
paddingVertical: Platform.OS === "android" ? 7 : 12,
paddingVertical: 12 - 1, // minus border width
backgroundColor: colors.themeBackground,
color: colors.text,
borderColor: colors.inputBorder,
Expand Down
4 changes: 2 additions & 2 deletions apps/thu-info-app/src/ui/settings/functionManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const FunctionManagementScreen = () => {
<Text style={{marginLeft: 8, color: colors.fontB2, marginTop: 12}}>
{getStr(name)}
</Text>
<RoundedView style={[style.rounded, {marginTop: 12}]}>
<RoundedView style={[style.rounded, {marginTop: 8}]}>
{functions[name].map((f, index) => (
<FunctionItem
key={f}
Expand All @@ -121,7 +121,7 @@ export const FunctionManagementScreen = () => {
{Object.keys(functions).map((name) =>
FunctionGroup(name as functionGroups),
)}
<View style={{marginBottom: 16}} />
<View style={{height: 32}} />
</ScrollView>
);
};
1 change: 1 addition & 0 deletions apps/thu-info-app/src/ui/settings/privacy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const PrivacyScreen = () => {
style={{
backgroundColor: theme.colors.themeBackground,
flex: 1,
padding: 12,
}}>
<WebView
source={{
Expand Down
5 changes: 3 additions & 2 deletions apps/thu-info-app/src/ui/settings/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
useColorScheme,
View,
ScrollView,
StyleSheet,
} from "react-native";
import Snackbar from "react-native-snackbar";
import {setDormPassword} from "../../redux/slices/credentials";
Expand Down Expand Up @@ -227,8 +228,8 @@ export const styles = themedStyles(({colors}) => ({
fontSize: 16,
},
separator: {
borderWidth: 0.4,
borderColor: colors.themeGrey,
borderBottomWidth: StyleSheet.hairlineWidth,
borderBottomColor: colors.themeGrey,
marginVertical: 12,
marginHorizontal: 16,
},
Expand Down

0 comments on commit daea785

Please sign in to comment.