mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-24 08:29:14 +00:00
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:
+1
-1
@@ -7,6 +7,6 @@ body,
|
|||||||
html,
|
html,
|
||||||
.App {
|
.App {
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
overflow: hidden;
|
overflow: clip;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,12 +58,3 @@ export const BatchOperation = atom(null, (get, set, payload) => {
|
|||||||
|
|
||||||
localStorage.setItem(PATH, JSON.stringify(options));
|
localStorage.setItem(PATH, JSON.stringify(options));
|
||||||
});
|
});
|
||||||
|
|
||||||
// change collapsed in all items
|
|
||||||
export const setAll = async (items, isCollapsed) => {
|
|
||||||
// clear storage
|
|
||||||
localStorage.removeItem(PATH);
|
|
||||||
|
|
||||||
// call batch
|
|
||||||
BatchOperation({ items: items, isCollapsed: isCollapsed });
|
|
||||||
};
|
|
||||||
|
|||||||
@@ -10,8 +10,9 @@ export default function LockIconBtn(props) {
|
|||||||
ref={ref}
|
ref={ref}
|
||||||
size={props.size || 'xs'}
|
size={props.size || 'xs'}
|
||||||
icon={<FiTarget />}
|
icon={<FiTarget />}
|
||||||
colorScheme='pink'
|
color={active ? 'pink.100' : 'pink.300'}
|
||||||
color={'pink.300'}
|
borderColor={active ? undefined : 'pink.300'}
|
||||||
|
backgroundColor={active ? 'pink.300' : undefined}
|
||||||
variant={active ? 'solid' : 'outline'}
|
variant={active ? 'solid' : 'outline'}
|
||||||
onClick={clickhandler}
|
onClick={clickhandler}
|
||||||
_focus={{ boxShadow: 'none' }}
|
_focus={{ boxShadow: 'none' }}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { useInterval } from 'app/hooks/useInterval';
|
|||||||
export default function Paginator(props) {
|
export default function Paginator(props) {
|
||||||
const { events, selectedId } = props;
|
const { events, selectedId } = props;
|
||||||
const LIMIT_PER_PAGE = props.limit || 8;
|
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 SCROLL_PAST = false;
|
||||||
const [numEvents, setNumEvents] = useState(0);
|
const [numEvents, setNumEvents] = useState(0);
|
||||||
const [page, setPage] = useState([]);
|
const [page, setPage] = useState([]);
|
||||||
|
|||||||
@@ -33,9 +33,9 @@ export default function EditableText(props) {
|
|||||||
>
|
>
|
||||||
<EditablePreview
|
<EditablePreview
|
||||||
color={text === '' ? '#666' : 'inherit'}
|
color={text === '' ? '#666' : 'inherit'}
|
||||||
maxWidth='20em'
|
maxWidth='75%'
|
||||||
/>
|
/>
|
||||||
<EditableInput overflowX='hidden' maxWidth='20em' />
|
<EditableInput overflowX='hidden' maxWidth='75%' />
|
||||||
</Editable>
|
</Editable>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -18,11 +18,12 @@
|
|||||||
/* 2/3 window, hide previews */
|
/* 2/3 window, hide previews */
|
||||||
@media (max-width: 1250px) and (min-height: 700px) {
|
@media (max-width: 1250px) and (min-height: 700px) {
|
||||||
.mainContainer {
|
.mainContainer {
|
||||||
|
height: 100%;
|
||||||
grid-template-rows: 1fr 1fr;
|
grid-template-rows: 1fr 1fr;
|
||||||
grid-template-columns: 48em 1fr 1fr;
|
grid-template-columns: 48em 1fr 1fr;
|
||||||
grid-template-areas:
|
/* grid-template-areas:
|
||||||
'even play sett'
|
'even play sett'
|
||||||
'even mess sett';
|
'even mess sett'; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.info {
|
.info {
|
||||||
@@ -40,6 +41,11 @@
|
|||||||
'play';
|
'play';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.messages,
|
||||||
|
.playback {
|
||||||
|
min-width: 31em;
|
||||||
|
}
|
||||||
|
|
||||||
.editor,
|
.editor,
|
||||||
.info,
|
.info,
|
||||||
.settings {
|
.settings {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export default function ActionButtons(props) {
|
|||||||
aria-label='Options'
|
aria-label='Options'
|
||||||
size='xs'
|
size='xs'
|
||||||
icon={<FiZap />}
|
icon={<FiZap />}
|
||||||
_expanded={{ bg: 'pink.300', color: 'white' }}
|
_expanded={{ bg: 'orange.300', color: 'white' }}
|
||||||
_focus={{ boxShadow: 'none' }}
|
_focus={{ boxShadow: 'none' }}
|
||||||
backgroundColor={'orange.200'}
|
backgroundColor={'orange.200'}
|
||||||
color={'orange.500'}
|
color={'orange.500'}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export default function MenuActionButtons(props) {
|
|||||||
aria-label='Options'
|
aria-label='Options'
|
||||||
size={props.size || 'xs'}
|
size={props.size || 'xs'}
|
||||||
icon={<FiZap />}
|
icon={<FiZap />}
|
||||||
_expanded={{ bg: 'pink.300', color: 'white' }}
|
_expanded={{ bg: 'orange.300', color: 'white' }}
|
||||||
_focus={{ boxShadow: 'none' }}
|
_focus={{ boxShadow: 'none' }}
|
||||||
backgroundColor={'orange.200'}
|
backgroundColor={'orange.200'}
|
||||||
color={'orange.500'}
|
color={'orange.500'}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export default function StageManager(props) {
|
|||||||
// Format messages
|
// Format messages
|
||||||
const showPubl = publ.text !== '' && publ.visible;
|
const showPubl = publ.text !== '' && publ.visible;
|
||||||
let stageTimer = formatDisplay(Math.abs(time.running), true);
|
let stageTimer = formatDisplay(Math.abs(time.running), true);
|
||||||
if (time.running < 0) stageTimer = '-' + stageTimer;
|
if (time.running < 0) stageTimer = `-${stageTimer}`;
|
||||||
|
|
||||||
// motion
|
// motion
|
||||||
const titleVariants = {
|
const titleVariants = {
|
||||||
|
|||||||
@@ -51,11 +51,8 @@ export default function Pip(props) {
|
|||||||
// Format messages
|
// Format messages
|
||||||
const showInfo =
|
const showInfo =
|
||||||
general.backstageInfo !== '' && general.backstageInfo != null;
|
general.backstageInfo !== '' && general.backstageInfo != null;
|
||||||
|
let stageTimer = formatDisplay(Math.abs(time.running), true);
|
||||||
const stageTimer =
|
if (time.running < 0) stageTimer = `-${stageTimer}`;
|
||||||
time.currentSeconds != null && !isNaN(time.currentSeconds)
|
|
||||||
? formatDisplay(time.currentSeconds, true)
|
|
||||||
: '';
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={style.container__gray}>
|
<div className={style.container__gray}>
|
||||||
|
|||||||
Reference in New Issue
Block a user