Skip to content

Commit

Permalink
Fixed card attribute layout for long values
Browse files Browse the repository at this point in the history
  • Loading branch information
procivisAG committed Aug 29, 2024
1 parent db5116d commit 6564850
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@procivis/one-react-native-components",
"version": "0.1.34",
"version": "0.1.35",
"description": "Common Procivis ONE UI components for react-native",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
9 changes: 5 additions & 4 deletions src/credential/credential-attribute-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ const CredentialAttributeItem: FC<CredentialAttributeItemProps> = ({
))}
<View />
</View>
<View style={[styles.rightAccessory, isObject && styles.objectAccessory]}>{rightAccessoryView}</View>
{rightAccessoryView && (
<View style={[styles.rightAccessory, isObject && styles.objectAccessory]}>{rightAccessoryView}</View>
)}
</View>
</CredentialAttributeItemButton>
</View>
Expand Down Expand Up @@ -345,16 +347,15 @@ const styles = StyleSheet.create({
paddingLeft: 13,
},
objectAccessory: {
top: 0,
alignSelf: 'flex-start',
},
objectAttributeItem: {
alignItems: 'stretch',
flex: 1,
paddingLeft: 12,
},
rightAccessory: {
position: 'absolute',
right: 8,
paddingHorizontal: 8,
},
separator: {
height: 1,
Expand Down

0 comments on commit 6564850

Please sign in to comment.