|
|
@ -14,7 +14,7 @@ import { |
|
|
import { SafeAreaView } from 'react-native-safe-area-context'; |
|
|
import { SafeAreaView } from 'react-native-safe-area-context'; |
|
|
import { IndustrySkillWordCloud } from '../../components/IndustrySkillWordCloud'; |
|
|
import { IndustrySkillWordCloud } from '../../components/IndustrySkillWordCloud'; |
|
|
import { useSkillCloud, useSkillLearningPath } from '../../src/hooks'; |
|
|
import { useSkillCloud, useSkillLearningPath } from '../../src/hooks'; |
|
|
import { colors } from '../../src/theme'; |
|
|
import {colors, spacing} from '../../src/theme'; |
|
|
import type { SkillLearningPath, SkillWord, TopSkill } from '../../src/types'; |
|
|
import type { SkillLearningPath, SkillWord, TopSkill } from '../../src/types'; |
|
|
|
|
|
|
|
|
/** 技能分组 → 中文标签(用于选中详情) */ |
|
|
/** 技能分组 → 中文标签(用于选中详情) */ |
|
|
@ -526,7 +526,7 @@ const styles = StyleSheet.create({ |
|
|
// flexShrink: 0 是必需的:搜索框出现后父容器变矮,默认 flexShrink:1 会把这条横向
|
|
|
// flexShrink: 0 是必需的:搜索框出现后父容器变矮,默认 flexShrink:1 会把这条横向
|
|
|
// ScrollView 压到内容高度以下,胶囊文字被纵向裁掉(点得到、看不见)
|
|
|
// ScrollView 压到内容高度以下,胶囊文字被纵向裁掉(点得到、看不见)
|
|
|
tabsWrap: { backgroundColor: colors.white, maxHeight: 52, flexGrow: 0, flexShrink: 0 }, |
|
|
tabsWrap: { backgroundColor: colors.white, maxHeight: 52, flexGrow: 0, flexShrink: 0 }, |
|
|
tabs: { flexDirection: 'row', paddingHorizontal: 16, gap: 8, paddingVertical: 10 }, |
|
|
tabs: { flexDirection: 'row', paddingHorizontal: spacing.framework, gap: 8, paddingVertical: 10 }, |
|
|
tab: { |
|
|
tab: { |
|
|
paddingHorizontal: 14, |
|
|
paddingHorizontal: 14, |
|
|
paddingVertical: 6, |
|
|
paddingVertical: 6, |
|
|
@ -539,7 +539,7 @@ const styles = StyleSheet.create({ |
|
|
filterBar: { |
|
|
filterBar: { |
|
|
flexDirection: 'row', |
|
|
flexDirection: 'row', |
|
|
backgroundColor: colors.white, |
|
|
backgroundColor: colors.white, |
|
|
paddingHorizontal: 16, |
|
|
paddingHorizontal: spacing.framework, |
|
|
paddingBottom: 12, |
|
|
paddingBottom: 12, |
|
|
gap: 10, |
|
|
gap: 10, |
|
|
}, |
|
|
}, |
|
|
@ -655,7 +655,7 @@ const styles = StyleSheet.create({ |
|
|
alignItems: 'center', |
|
|
alignItems: 'center', |
|
|
gap: 8, |
|
|
gap: 8, |
|
|
backgroundColor: colors.white, |
|
|
backgroundColor: colors.white, |
|
|
paddingHorizontal: 16, |
|
|
paddingHorizontal: spacing.framework, |
|
|
paddingBottom: 10, |
|
|
paddingBottom: 10, |
|
|
}, |
|
|
}, |
|
|
searchInput: { |
|
|
searchInput: { |
|
|
@ -688,14 +688,14 @@ const styles = StyleSheet.create({ |
|
|
flexDirection: 'row', |
|
|
flexDirection: 'row', |
|
|
alignItems: 'center', |
|
|
alignItems: 'center', |
|
|
justifyContent: 'space-between', |
|
|
justifyContent: 'space-between', |
|
|
paddingHorizontal: 16, |
|
|
paddingHorizontal: spacing.framework, |
|
|
paddingVertical: 14, |
|
|
paddingVertical: 14, |
|
|
borderBottomWidth: 1, |
|
|
borderBottomWidth: 1, |
|
|
borderBottomColor: colors.borderLight, |
|
|
borderBottomColor: colors.borderLight, |
|
|
}, |
|
|
}, |
|
|
modalTitle: { fontSize: 16, fontWeight: '700', color: colors.textPrimary }, |
|
|
modalTitle: { fontSize: 16, fontWeight: '700', color: colors.textPrimary }, |
|
|
modalCenter: { alignItems: 'center', justifyContent: 'center', gap: 12, paddingVertical: 48 }, |
|
|
modalCenter: { alignItems: 'center', justifyContent: 'center', gap: 12, paddingVertical: 48 }, |
|
|
modalBody: { paddingHorizontal: 16, paddingBottom: 12 }, |
|
|
modalBody: { paddingHorizontal: spacing.framework, paddingBottom: 12 }, |
|
|
pathSummary: { |
|
|
pathSummary: { |
|
|
backgroundColor: colors.primaryLight, |
|
|
backgroundColor: colors.primaryLight, |
|
|
borderRadius: 8, |
|
|
borderRadius: 8, |
|
|
|