Skip to content

Commit

Permalink
fix: adjust home page styles (#648)
Browse files Browse the repository at this point in the history
* test: test removing home section content container's min height

* fix: adjust paddings and margins
  • Loading branch information
SunnyCloudYang authored Nov 4, 2024
1 parent 88c35b1 commit 123f509
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions apps/thu-info-app/src/ui/home/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,12 @@ export const AnnouncementSection = () => {
({id, read, title, content}) => (
<TouchableOpacity
onPress={() => dispatch(toggleReadStatus(id))}
style={{marginVertical: 4, marginHorizontal: 12}}
style={{marginTop: 8, marginHorizontal: 8}}
key={id}>
<Text style={{fontWeight: "bold", color: colors.text}}>
{title} {read ? "(已读)" : ""}
</Text>
{!read && <Text style={{color: colors.text}}>{content}</Text>}
{!read && <Text style={{color: colors.fontB2}}>{content}</Text>}
</TouchableOpacity>
)
)}
Expand Down Expand Up @@ -470,7 +470,10 @@ export const HomeScheduleSection = () => {
return (
<View style={style.SectionContainer}>
<Text style={style.SectionTitle}>{getStr("schedulePreview")}</Text>
<View style={style.SectionContentContainer}>
<View style={[
style.SectionContentContainer,
{ paddingHorizontal: 20 },
]}>
<Text style={style.scheduleSectionContentPrimaryTitle}>
{getLocale() === zh
? `${now.month() + 1}${now.date()}${dayZh[today]}`
Expand Down Expand Up @@ -1060,7 +1063,7 @@ const styles = themedStyles((theme) => ({
paddingHorizontal: 12,
paddingTop: 8,
paddingBottom: 16,
minHeight: 92, // this value is produced by trying many times...
// minHeight: 92, // this value is produced by trying many times...
},
SectionTitle: {
textAlign: "left",
Expand Down

0 comments on commit 123f509

Please sign in to comment.