Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
style: show top margin for note details in spite of title existence (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vardan-arm committed Feb 15, 2022
1 parent ded4063 commit c4766b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
12 changes: 4 additions & 8 deletions src/screens/Notes/NoteCell.styled.ts
@@ -1,6 +1,6 @@
import { hexToRGBA } from '@Style/utils';
import { StyleSheet } from 'react-native';
import styled, { css } from 'styled-components/native';
import styled from 'styled-components/native';

export const TouchableContainer = styled.TouchableWithoutFeedback``;
export const Container = styled.View<{ selected: boolean; distance: number }>`
Expand Down Expand Up @@ -53,13 +53,9 @@ export const TagText = styled.Text<{ selected: boolean }>`
selected ? theme.stylekitInfoContrastColor : theme.stylekitForegroundColor};
opacity: ${props => (props.selected ? 0.8 : 0.5)};
`;
export const DetailsText = styled(TagText)<{ first: boolean }>`
margin-right: 0px;
${({ first }) =>
!first &&
css`
margin-top: 5px;
`}
export const DetailsText = styled(TagText)`
margin-right: 0;
margin-top: 5px;
`;
export const FlexContainer = styled.View`
display: flex;
Expand Down
1 change: 0 additions & 1 deletion src/screens/Notes/NoteCell.tsx
Expand Up @@ -260,7 +260,6 @@ export const NoteCell = ({
<DetailsText
numberOfLines={1}
selected={highlight}
first={!note.title}
>
{note.protected && (
<Text>
Expand Down

0 comments on commit c4766b1

Please sign in to comment.