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} />
<MaterialCommunityIcons name="share" color={'gray'} size={25} style={{
top: 18,
left: 20,
position: 'absolute'
}} />
<MaterialCommunityIcons name="share" color={'gray'} size={25} style={[Styles.absoluteIcon]} />
</>
: category == 'file-shared'
?
<>
<Ionicons name="document-text-sharp" color={'#9fcff8'} size={40} />
<MaterialCommunityIcons name="share" color={'gray'} size={25} style={{
top: 18,
left: 20,
position: 'absolute'
}} />
<MaterialCommunityIcons name="share" color={'gray'} size={25} style={[Styles.absoluteIcon]} />
</>
:
category == 'folder'

View File

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