mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-30 11:29:11 +00:00
style: wording and UI tweaks (#564)
* style: wording and UI tweaks * style: prevent note overflow * style: small wording changes * soft blink (#569) * chore: version bump --------- Co-authored-by: Alex Christoffer Rasmussen <alex.christoffer@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ontime-ui",
|
"name": "ontime-ui",
|
||||||
"version": "2.9.0",
|
"version": "2.13.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/react": "^2.7.0",
|
"@chakra-ui/react": "^2.7.0",
|
||||||
|
|||||||
@@ -141,11 +141,7 @@ export default function CuesheetWrapper() {
|
|||||||
<div className={styles.tableWrapper} data-testid='cuesheet'>
|
<div className={styles.tableWrapper} data-testid='cuesheet'>
|
||||||
<CuesheetTableHeader handleExport={handleOpenModal} featureData={featureData} />
|
<CuesheetTableHeader handleExport={handleOpenModal} featureData={featureData} />
|
||||||
<Cuesheet data={rundown} columns={columns} handleUpdate={handleUpdate} selectedId={featureData.selectedEventId} />
|
<Cuesheet data={rundown} columns={columns} handleUpdate={handleUpdate} selectedId={featureData.selectedEventId} />
|
||||||
<ExportModal
|
<ExportModal isOpen={isModalOpen} onClose={onModalClose} />
|
||||||
isOpen={isModalOpen}
|
|
||||||
onClose={onModalClose}
|
|
||||||
buttonVariants={{ csv: 'ontime-filled', json: 'ontime-ghosted' }}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -151,11 +151,7 @@ const MenuBar = (props: MenuBarProps) => {
|
|||||||
size='sm'
|
size='sm'
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ExportModal
|
<ExportModal onClose={onModalClose} isOpen={isModalOpen} />
|
||||||
onClose={onModalClose}
|
|
||||||
isOpen={isModalOpen}
|
|
||||||
buttonVariants={{ csv: 'ontime-subtle-on-light', json: 'ontime-filled' }}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div className={style.gap} />
|
<div className={style.gap} />
|
||||||
<TooltipActionBtn
|
<TooltipActionBtn
|
||||||
|
|||||||
@@ -3,17 +3,14 @@ import { Button, Modal, ModalBody, ModalCloseButton, ModalContent, ModalHeader,
|
|||||||
import styles from './ExportModal.module.scss';
|
import styles from './ExportModal.module.scss';
|
||||||
|
|
||||||
export type ExportType = 'csv' | 'json';
|
export type ExportType = 'csv' | 'json';
|
||||||
|
|
||||||
interface ExportModalProps {
|
interface ExportModalProps {
|
||||||
isOpen: boolean;
|
isOpen: boolean;
|
||||||
onClose: (type?: ExportType) => void;
|
onClose: (type?: ExportType) => void;
|
||||||
buttonVariants: {
|
|
||||||
csv: string;
|
|
||||||
json: string;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function ExportModal(props: ExportModalProps) {
|
export default function ExportModal(props: ExportModalProps) {
|
||||||
const { isOpen, onClose, buttonVariants } = props;
|
const { isOpen, onClose } = props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal isOpen={isOpen} onClose={onClose} motionPreset='scale' size='xl' colorScheme='blackAlpha'>
|
<Modal isOpen={isOpen} onClose={onClose} motionPreset='scale' size='xl' colorScheme='blackAlpha'>
|
||||||
@@ -22,10 +19,10 @@ export default function ExportModal(props: ExportModalProps) {
|
|||||||
<ModalHeader className={styles.modalHeader}>Download options</ModalHeader>
|
<ModalHeader className={styles.modalHeader}>Download options</ModalHeader>
|
||||||
<ModalCloseButton />
|
<ModalCloseButton />
|
||||||
<ModalBody className={styles.modalBody}>
|
<ModalBody className={styles.modalBody}>
|
||||||
<Button onClick={() => onClose('csv')} variant={buttonVariants.csv} width='48%'>
|
<Button onClick={() => onClose('csv')} variant='ontime-subtle-on-light' width='48%'>
|
||||||
rundown as CSV
|
Rundown as CSV
|
||||||
</Button>
|
</Button>
|
||||||
<Button onClick={() => onClose('json')} variant={buttonVariants.json} width='48%'>
|
<Button onClick={() => onClose('json')} variant='ontime-filled' width='48%'>
|
||||||
Project file
|
Project file
|
||||||
</Button>
|
</Button>
|
||||||
</ModalBody>
|
</ModalBody>
|
||||||
|
|||||||
@@ -175,6 +175,9 @@ $skip-opacity: 0.1;
|
|||||||
font-size: calc(1rem - 3px);
|
font-size: calc(1rem - 3px);
|
||||||
color: $block-text-color;
|
color: $block-text-color;
|
||||||
line-height: calc(1rem - 3px);
|
line-height: calc(1rem - 3px);
|
||||||
|
|
||||||
|
max-height: 2rem;
|
||||||
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,10 @@
|
|||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
|
||||||
&.blink {
|
&.blink {
|
||||||
animation: blink 0.5s ease-in-out 3;
|
animation-name: blink;
|
||||||
|
animation-timing-function: ease-in-out;
|
||||||
|
animation-iteration-count: 3;
|
||||||
|
animation-duration: 1s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -163,9 +166,12 @@
|
|||||||
|
|
||||||
@keyframes blink {
|
@keyframes blink {
|
||||||
0% {
|
0% {
|
||||||
background-color: var(--card-background-color-blink-override, $playback-start);
|
|
||||||
}
|
|
||||||
20% {
|
|
||||||
background-color: var(--card-background-color-override, $viewer-card-bg-color);
|
background-color: var(--card-background-color-override, $viewer-card-bg-color);
|
||||||
}
|
}
|
||||||
}
|
50% {
|
||||||
|
background-color: var(--card-background-color-blink-override, $playback-start);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
background-color: var(--card-background-color-override, $viewer-card-bg-color);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ontime",
|
"name": "ontime",
|
||||||
"version": "2.9.0",
|
"version": "2.13.1",
|
||||||
"author": "Carlos Valente",
|
"author": "Carlos Valente",
|
||||||
"description": "Time keeping for live events",
|
"description": "Time keeping for live events",
|
||||||
"repository": "https://github.com/cpvalente/ontime",
|
"repository": "https://github.com/cpvalente/ontime",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "ontime-server",
|
"name": "ontime-server",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"version": "2.9.0",
|
"version": "2.13.1",
|
||||||
"exports": "./src/index.js",
|
"exports": "./src/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"body-parser": "^1.20.0",
|
"body-parser": "^1.20.0",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { LogOrigin, OntimeEvent } from 'ontime-types';
|
import { OntimeEvent } from 'ontime-types';
|
||||||
|
|
||||||
import { messageService } from '../services/message-service/MessageService.js';
|
import { messageService } from '../services/message-service/MessageService.js';
|
||||||
import { PlaybackService } from '../services/PlaybackService.js';
|
import { PlaybackService } from '../services/PlaybackService.js';
|
||||||
@@ -256,10 +256,10 @@ export function dispatchFromAdapter(
|
|||||||
// ontime/change/{eventID}/{propertyName}
|
// ontime/change/{eventID}/{propertyName}
|
||||||
case 'change': {
|
case 'change': {
|
||||||
if (params.length < 2) {
|
if (params.length < 2) {
|
||||||
throw new Error(`To few parameters`);
|
throw new Error('Too few parameters, 3 expected');
|
||||||
}
|
}
|
||||||
if (payload === undefined) {
|
if (payload === undefined) {
|
||||||
throw new Error(`Undefined payload`);
|
throw new Error('No payload found');
|
||||||
}
|
}
|
||||||
const eventID = params[0];
|
const eventID = params[0];
|
||||||
const propertyName = params[1] as keyof OntimeEvent;
|
const propertyName = params[1] as keyof OntimeEvent;
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ontime",
|
"name": "ontime",
|
||||||
"version": "2.9.0",
|
"version": "2.13.1",
|
||||||
"description": "Time keeping for live events",
|
"description": "Time keeping for live events",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"lighdev",
|
"lighdev",
|
||||||
|
|||||||
Reference in New Issue
Block a user