upd: style icon absolute

This commit is contained in:
amel
2025-03-21 14:12:25 +08:00
parent 69248290ff
commit 2fa848f881
2 changed files with 7 additions and 10 deletions

View File

@@ -22,21 +22,13 @@ export default function ItemFile({ category, checked, dateTime, title, onChecked
? ?
<> <>
<Ionicons name="folder-open-sharp" color={'#f9cc40'} size={40} /> <Ionicons name="folder-open-sharp" color={'#f9cc40'} size={40} />
<MaterialCommunityIcons name="share" color={'gray'} size={25} style={{ <MaterialCommunityIcons name="share" color={'gray'} size={25} style={[Styles.absoluteIcon]} />
top: 18,
left: 20,
position: 'absolute'
}} />
</> </>
: category == 'file-shared' : category == 'file-shared'
? ?
<> <>
<Ionicons name="document-text-sharp" color={'#9fcff8'} size={40} /> <Ionicons name="document-text-sharp" color={'#9fcff8'} size={40} />
<MaterialCommunityIcons name="share" color={'gray'} size={25} style={{ <MaterialCommunityIcons name="share" color={'gray'} size={25} style={[Styles.absoluteIcon]} />
top: 18,
left: 20,
position: 'absolute'
}} />
</> </>
: :
category == 'folder' category == 'folder'

View File

@@ -510,6 +510,11 @@ const Styles = StyleSheet.create({
absolute0: { absolute0: {
position: 'absolute', position: 'absolute',
bottom: 0 bottom: 0
},
absoluteIcon: {
top: 18,
left: 20,
position: 'absolute'
} }
}) })