* feat: backlinks * feat: add backlinkDocumentId to documents.list * chore: refactor fix: create and delete backlink handling * fix: guard against self links * feat: basic frontend fix: race condition * styling * test: fix parse ids * self review * linting * feat: Improved link styling * fix: Increase clickable area at bottom of doc / between references * perf: global styles are SLOW
11 lines
252 B
JavaScript
11 lines
252 B
JavaScript
// @flow
|
|
import styled from 'styled-components';
|
|
|
|
const ClickablePadding = styled.div`
|
|
min-height: 10em;
|
|
cursor: ${({ onClick }) => (onClick ? 'text' : 'default')};
|
|
${({ grow }) => grow && `flex-grow: 100;`};
|
|
`;
|
|
|
|
export default ClickablePadding;
|