small style fixes + defaults

- remove unused code in collapse atom
- stop text input from creating new line
- clean overflow
- restyle lock button
- restyle action buttons
- 10 second default on paginator
- Pip shows running timer
This commit is contained in:
cv
2021-05-26 22:19:55 +02:00
parent 0a2be1615e
commit 856f9d308a
10 changed files with 20 additions and 25 deletions
@@ -10,8 +10,9 @@ export default function LockIconBtn(props) {
ref={ref}
size={props.size || 'xs'}
icon={<FiTarget />}
colorScheme='pink'
color={'pink.300'}
color={active ? 'pink.100' : 'pink.300'}
borderColor={active ? undefined : 'pink.300'}
backgroundColor={active ? 'pink.300' : undefined}
variant={active ? 'solid' : 'outline'}
onClick={clickhandler}
_focus={{ boxShadow: 'none' }}
@@ -6,7 +6,7 @@ import { useInterval } from 'app/hooks/useInterval';
export default function Paginator(props) {
const { events, selectedId } = props;
const LIMIT_PER_PAGE = props.limit || 8;
const SCROLL_TIME = props.time * 1000 || 5000;
const SCROLL_TIME = props.time * 1000 || 10000;
const SCROLL_PAST = false;
const [numEvents, setNumEvents] = useState(0);
const [page, setPage] = useState([]);