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