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} />
|
||||
<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'
|
||||
|
||||
@@ -510,6 +510,11 @@ const Styles = StyleSheet.create({
|
||||
absolute0: {
|
||||
position: 'absolute',
|
||||
bottom: 0
|
||||
},
|
||||
absoluteIcon: {
|
||||
top: 18,
|
||||
left: 20,
|
||||
position: 'absolute'
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user