upd: style icon absolute
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
@@ -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'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user