fix(point-categories): align yuan source UI with card accordions and standard typography #132
|
|
@ -13,7 +13,7 @@ import { Ionicons } from "@expo/vector-icons";
|
||||||
import { useRouter } from "expo-router";
|
import { useRouter } from "expo-router";
|
||||||
import { moderateScale, verticalScale } from "react-native-size-matters";
|
import { moderateScale, verticalScale } from "react-native-size-matters";
|
||||||
|
|
||||||
import { Colors } from "@/theme";
|
import { Colors, Radius } from "@/theme";
|
||||||
import { useSettingsStore } from "@/store/settings.store";
|
import { useSettingsStore } from "@/store/settings.store";
|
||||||
import type { DetailRendererProps } from "../../types/renderer.types";
|
import type { DetailRendererProps } from "../../types/renderer.types";
|
||||||
import { useModuleTemplateContentDetailsQuery } from "../../hooks/use-content-queries";
|
import { useModuleTemplateContentDetailsQuery } from "../../hooks/use-content-queries";
|
||||||
|
|
@ -235,7 +235,7 @@ function PointAccordionCard({
|
||||||
</View>
|
</View>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
{/* Linkable Point Button (Acupoints style: clean, no emoji/icon) */}
|
{/* Linkable Point Button (matching standard ReferenceChipList styling) */}
|
||||||
{pointLabel ? (
|
{pointLabel ? (
|
||||||
<Pressable
|
<Pressable
|
||||||
accessibilityRole="link"
|
accessibilityRole="link"
|
||||||
|
|
@ -249,8 +249,8 @@ function PointAccordionCard({
|
||||||
<Text style={styles.pointLinkLabel}>{pointButtonLabel}</Text>
|
<Text style={styles.pointLinkLabel}>{pointButtonLabel}</Text>
|
||||||
<Ionicons
|
<Ionicons
|
||||||
name="chevron-forward"
|
name="chevron-forward"
|
||||||
size={moderateScale(18)}
|
size={moderateScale(14)}
|
||||||
color={Colors.primary}
|
color={Colors.primaryDark}
|
||||||
/>
|
/>
|
||||||
</Pressable>
|
</Pressable>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
@ -461,21 +461,22 @@ const styles = StyleSheet.create({
|
||||||
color: "#334155",
|
color: "#334155",
|
||||||
},
|
},
|
||||||
pointLinkButton: {
|
pointLinkButton: {
|
||||||
minHeight: verticalScale(44),
|
alignSelf: "flex-start",
|
||||||
paddingHorizontal: moderateScale(14),
|
minHeight: verticalScale(34),
|
||||||
paddingVertical: verticalScale(10),
|
paddingHorizontal: moderateScale(12),
|
||||||
borderRadius: moderateScale(10),
|
paddingVertical: verticalScale(6),
|
||||||
|
borderRadius: Radius.full,
|
||||||
backgroundColor: "#E8F5E9",
|
backgroundColor: "#E8F5E9",
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
borderColor: "#CDE5D0",
|
borderColor: "#CDE5D0",
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
justifyContent: "space-between",
|
gap: moderateScale(6),
|
||||||
marginTop: verticalScale(4),
|
marginTop: verticalScale(6),
|
||||||
},
|
},
|
||||||
pointLinkLabel: {
|
pointLinkLabel: {
|
||||||
fontSize: 15,
|
fontSize: moderateScale(13),
|
||||||
lineHeight: 20,
|
lineHeight: moderateScale(18),
|
||||||
fontWeight: "700",
|
fontWeight: "700",
|
||||||
color: Colors.primaryDark,
|
color: Colors.primaryDark,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue