diff --git a/apps/client/src/features/app-settings/AppSettings.tsx b/apps/client/src/features/app-settings/AppSettings.tsx index 3644c3d06..8b828d06b 100644 --- a/apps/client/src/features/app-settings/AppSettings.tsx +++ b/apps/client/src/features/app-settings/AppSettings.tsx @@ -4,7 +4,6 @@ import { useKeyDown } from '../../common/hooks/useKeyDown'; import AboutPanel from './panel/about-panel/AboutPanel'; import AutomationPanel from './panel/automations-panel/AutomationPanel'; -import ClientControlPanel from './panel/client-control-panel/ClientControlPanel'; import FeatureSettingsPanel from './panel/feature-settings-panel/FeatureSettingsPanel'; import GeneralPanel from './panel/general-panel/GeneralPanel'; import NetworkLogPanel from './panel/network-panel/NetworkLogPanel'; @@ -31,9 +30,8 @@ export default function AppSettings() { {panel === 'feature_settings' && } {panel === 'sources' && } {panel === 'automation' && } - {panel === 'client_control' && } - {panel === 'about' && } {panel === 'network' && } + {panel === 'about' && } {panel === 'shutdown' && } diff --git a/apps/client/src/features/app-settings/panel/automations-panel/AutomationForm.module.scss b/apps/client/src/features/app-settings/panel/automations-panel/AutomationForm.module.scss index 4e34b8b7b..12b438302 100644 --- a/apps/client/src/features/app-settings/panel/automations-panel/AutomationForm.module.scss +++ b/apps/client/src/features/app-settings/panel/automations-panel/AutomationForm.module.scss @@ -68,16 +68,6 @@ grid-template-columns: 1fr auto; } -.actions { - justify-content: flex-end; -} - -.actionButtons { - display: flex; - gap: 1rem; - margin-top: 1rem; -} - .outputCard { border-left: 0.25rem solid $gray-1200; padding-left: 0.5rem; diff --git a/apps/client/src/features/app-settings/panel/client-control-panel/ClientControlPanel.module.scss b/apps/client/src/features/app-settings/panel/client-control-panel/ClientControlPanel.module.scss index 2c42f32e0..d61ceebfc 100644 --- a/apps/client/src/features/app-settings/panel/client-control-panel/ClientControlPanel.module.scss +++ b/apps/client/src/features/app-settings/panel/client-control-panel/ClientControlPanel.module.scss @@ -2,23 +2,11 @@ width: 100%; } -.actionButtons { - display: flex; - gap: $element-spacing; +.halfWidth { + width: 50%; } -.halfWidth { +.halfWidthNoWrap { width: 50%; white-space: nowrap; } - -.pathList { - width: 100%; -} - -.badgeList { - width: 100%; - * { - margin-right: $element-spacing; - } -} diff --git a/apps/client/src/features/app-settings/panel/client-control-panel/ClientList.tsx b/apps/client/src/features/app-settings/panel/client-control-panel/ClientList.tsx index fb0f4cf22..64037855f 100644 --- a/apps/client/src/features/app-settings/panel/client-control-panel/ClientList.tsx +++ b/apps/client/src/features/app-settings/panel/client-control-panel/ClientList.tsx @@ -52,7 +52,7 @@ export default function ClientList() { - Client Name (Connection ID) + Client Name (Connection ID) Path @@ -63,7 +63,7 @@ export default function ClientList() { const isCurrent = id === key; return ( - + {key} @@ -73,9 +73,9 @@ export default function ClientList() { )} {name} - - {path} - + + {path} + - + ); })} @@ -119,8 +119,8 @@ export default function ClientList() { - Client Name (Connection ID) - Client type + Client Name (Connection ID) + Client type @@ -129,12 +129,12 @@ export default function ClientList() { return ( - + {key} {name} - + {type} ); diff --git a/apps/client/src/features/app-settings/panel/feature-settings-panel/FeatureSettings.module.scss b/apps/client/src/features/app-settings/panel/feature-settings-panel/FeatureSettings.module.scss index 704cf483a..651b27a58 100644 --- a/apps/client/src/features/app-settings/panel/feature-settings-panel/FeatureSettings.module.scss +++ b/apps/client/src/features/app-settings/panel/feature-settings-panel/FeatureSettings.module.scss @@ -6,16 +6,6 @@ width: 100%; } -.actions { - display: flex; - gap: 0.5px; -} - -.actionButtons { - display: flex; - gap: 1em; -} - .fieldForm { padding: 1rem; background-color: $gray-1350; @@ -24,12 +14,6 @@ gap: 1rem; } -.buttonRow { - display: flex; - justify-content: flex-end; - gap: 1rem; -} - .fit { width: fit-content; } @@ -38,10 +22,6 @@ min-width: 12em; } -.flex { - display: flex; -} - .twoCols { display: grid; grid-template-columns: 1fr 1fr; diff --git a/apps/client/src/features/app-settings/panel/feature-settings-panel/UrlPresetsForm.tsx b/apps/client/src/features/app-settings/panel/feature-settings-panel/UrlPresetsForm.tsx index 3241cfe23..4368dd0ad 100644 --- a/apps/client/src/features/app-settings/panel/feature-settings-panel/UrlPresetsForm.tsx +++ b/apps/client/src/features/app-settings/panel/feature-settings-panel/UrlPresetsForm.tsx @@ -92,14 +92,14 @@ export default function UrlPresetsForm() { URL presets -
+ -
+
@@ -192,7 +192,7 @@ export default function UrlPresetsForm() { /> {maybeUrlError} - + - + ); })} diff --git a/apps/client/src/features/app-settings/panel/feature-settings-panel/custom-fields/CustomFieldEntry.tsx b/apps/client/src/features/app-settings/panel/feature-settings-panel/custom-fields/CustomFieldEntry.tsx index a22694ee8..1b3a076d1 100644 --- a/apps/client/src/features/app-settings/panel/feature-settings-panel/custom-fields/CustomFieldEntry.tsx +++ b/apps/client/src/features/app-settings/panel/feature-settings-panel/custom-fields/CustomFieldEntry.tsx @@ -6,6 +6,7 @@ import { CustomField, CustomFieldLabel } from 'ontime-types'; import CopyTag from '../../../../../common/components/copy-tag/CopyTag'; import Swatch from '../../../../../common/components/input/colour-input/Swatch'; +import * as Panel from '../../../panel-utils/PanelUtils'; import CustomFieldForm from './CustomFieldForm'; @@ -55,7 +56,7 @@ export default function CustomFieldEntry(props: CustomFieldEntryProps) { {field} - + onDelete(field)} /> - + ); } diff --git a/apps/client/src/features/app-settings/panel/feature-settings-panel/custom-fields/CustomFieldForm.tsx b/apps/client/src/features/app-settings/panel/feature-settings-panel/custom-fields/CustomFieldForm.tsx index 2de9777ca..e2ad0c2fa 100644 --- a/apps/client/src/features/app-settings/panel/feature-settings-panel/custom-fields/CustomFieldForm.tsx +++ b/apps/client/src/features/app-settings/panel/feature-settings-panel/custom-fields/CustomFieldForm.tsx @@ -107,14 +107,14 @@ export default function CustomFieldForm(props: CustomFieldsFormProps) { {errors.root && {errors.root.message}} -
+ -
+ ); } diff --git a/apps/client/src/features/app-settings/panel/general-panel/GeneralPanel.module.scss b/apps/client/src/features/app-settings/panel/general-panel/GeneralPanel.module.scss deleted file mode 100644 index bfd682999..000000000 --- a/apps/client/src/features/app-settings/panel/general-panel/GeneralPanel.module.scss +++ /dev/null @@ -1,4 +0,0 @@ -.actionButtons { - display: flex; - gap: 1em; -} diff --git a/apps/client/src/features/app-settings/panel/general-panel/GeneralPanelForm.tsx b/apps/client/src/features/app-settings/panel/general-panel/GeneralPanelForm.tsx index bc24cd0a3..5d67d5153 100644 --- a/apps/client/src/features/app-settings/panel/general-panel/GeneralPanelForm.tsx +++ b/apps/client/src/features/app-settings/panel/general-panel/GeneralPanelForm.tsx @@ -11,8 +11,6 @@ import * as Panel from '../../panel-utils/PanelUtils'; import GeneralPinInput from './GeneralPinInput'; -import style from './GeneralPanel.module.scss'; - export type GeneralPanelFormValues = { filename: string; }; @@ -66,7 +64,7 @@ export default function GeneralPanelForm() { General settings -
+ @@ -80,7 +78,7 @@ export default function GeneralPanelForm() { > Save -
+
{submitError && {submitError}} diff --git a/apps/client/src/features/app-settings/panel/general-panel/ViewSettingsForm.tsx b/apps/client/src/features/app-settings/panel/general-panel/ViewSettingsForm.tsx index 57ea55c67..017d26640 100644 --- a/apps/client/src/features/app-settings/panel/general-panel/ViewSettingsForm.tsx +++ b/apps/client/src/features/app-settings/panel/general-panel/ViewSettingsForm.tsx @@ -11,8 +11,6 @@ import useInfo from '../../../../common/hooks-query/useInfo'; import useViewSettings from '../../../../common/hooks-query/useViewSettings'; import * as Panel from '../../panel-utils/PanelUtils'; -import style from './GeneralPanel.module.scss'; - const cssOverrideDocsUrl = 'https://docs.getontime.no/features/custom-styling/'; export default function ViewSettingsForm() { @@ -71,14 +69,14 @@ export default function ViewSettingsForm() { View settings -
+ -
+
diff --git a/apps/client/src/features/app-settings/panel/network-panel/NetworkInterfaces.module.scss b/apps/client/src/features/app-settings/panel/network-panel/NetworkInterfaces.module.scss index 1d668e463..768b119f5 100644 --- a/apps/client/src/features/app-settings/panel/network-panel/NetworkInterfaces.module.scss +++ b/apps/client/src/features/app-settings/panel/network-panel/NetworkInterfaces.module.scss @@ -1,10 +1,3 @@ -.interfaces { - display: flex; - flex-wrap: wrap; - gap: $section-spacing; - row-gap: $element-inner-spacing; -} - .goIcon { @include rotate-fourty-five; margin-left: 0.25rem; diff --git a/apps/client/src/features/app-settings/panel/network-panel/NetworkInterfaces.tsx b/apps/client/src/features/app-settings/panel/network-panel/NetworkInterfaces.tsx index 556531b38..5072b4c3e 100644 --- a/apps/client/src/features/app-settings/panel/network-panel/NetworkInterfaces.tsx +++ b/apps/client/src/features/app-settings/panel/network-panel/NetworkInterfaces.tsx @@ -4,6 +4,7 @@ import CopyTag from '../../../../common/components/copy-tag/CopyTag'; import useInfo from '../../../../common/hooks-query/useInfo'; import { linkToOtherHost, openLink } from '../../../../common/utils/linkUtils'; import { isLocalhost } from '../../../../externals'; +import * as Panel from '../../panel-utils/PanelUtils'; import style from './NetworkInterfaces.module.scss'; @@ -13,7 +14,7 @@ export default function InfoNif() { const handleClick = (address: string) => openLink(address); return ( -
+ {data.networkInterfaces.map((nif) => { // interfaces outside localhost wont have access if (nif.name === 'localhost' && !isLocalhost) return null; @@ -30,6 +31,6 @@ export default function InfoNif() { ); })} -
+ ); } diff --git a/apps/client/src/features/app-settings/panel/project-panel/ManageProjects.tsx b/apps/client/src/features/app-settings/panel/project-panel/ManageProjects.tsx index 0a020ef5e..5e8dd836c 100644 --- a/apps/client/src/features/app-settings/panel/project-panel/ManageProjects.tsx +++ b/apps/client/src/features/app-settings/panel/project-panel/ManageProjects.tsx @@ -11,8 +11,6 @@ import * as Panel from '../../panel-utils/PanelUtils'; import ProjectCreateForm from './ProjectCreateForm'; import ProjectList from './ProjectList'; -import style from './ProjectPanel.module.scss'; - export default function ManageProjects() { const [searchParams, setSearchParams] = useSearchParams(); const [error, setError] = useState(''); @@ -70,7 +68,7 @@ export default function ManageProjects() { Manage projects -
+ -
+
{error && {error}} diff --git a/apps/client/src/features/app-settings/panel/project-panel/ProjectCreateForm.tsx b/apps/client/src/features/app-settings/panel/project-panel/ProjectCreateForm.tsx index fa5b902de..7e2591f57 100644 --- a/apps/client/src/features/app-settings/panel/project-panel/ProjectCreateForm.tsx +++ b/apps/client/src/features/app-settings/panel/project-panel/ProjectCreateForm.tsx @@ -69,14 +69,14 @@ export default function ProjectCreateForm(props: ProjectCreateFromProps) { Create new project -
+ -
+
{error && {error}} diff --git a/apps/client/src/features/app-settings/panel/project-panel/ProjectData.tsx b/apps/client/src/features/app-settings/panel/project-panel/ProjectData.tsx index 7f3094f64..6b5071538 100644 --- a/apps/client/src/features/app-settings/panel/project-panel/ProjectData.tsx +++ b/apps/client/src/features/app-settings/panel/project-panel/ProjectData.tsx @@ -100,7 +100,7 @@ export default function ProjectData() { Project data -
+ @@ -113,7 +113,7 @@ export default function ProjectData() { > Save -
+
diff --git a/apps/client/src/features/app-settings/panel/project-panel/ProjectForm.tsx b/apps/client/src/features/app-settings/panel/project-panel/ProjectForm.tsx index cf932fe42..f116b5849 100644 --- a/apps/client/src/features/app-settings/panel/project-panel/ProjectForm.tsx +++ b/apps/client/src/features/app-settings/panel/project-panel/ProjectForm.tsx @@ -45,7 +45,7 @@ export default function ProjectForm({ action, filename, onSubmit, onCancel }: Pr autoComplete='off' {...register('filename', { required: true })} /> -
+ @@ -58,7 +58,7 @@ export default function ProjectForm({ action, filename, onSubmit, onCancel }: Pr > {action} -
+ ); } diff --git a/apps/client/src/features/app-settings/panel/project-panel/ProjectListItem.tsx b/apps/client/src/features/app-settings/panel/project-panel/ProjectListItem.tsx index 858c23072..47d20e54a 100644 --- a/apps/client/src/features/app-settings/panel/project-panel/ProjectListItem.tsx +++ b/apps/client/src/features/app-settings/panel/project-panel/ProjectListItem.tsx @@ -130,7 +130,7 @@ export default function ProjectListItem({ <> {filename} {current ? 'Currently loaded' : new Date(updatedAt).toLocaleString()} - + Merge {`"${fileName}"`} -
+ @@ -88,7 +88,7 @@ export default function ProjectMergeForm(props: ProjectMergeFromProps) { > Merge -
+
{error && {error}} diff --git a/apps/client/src/features/app-settings/panel/project-panel/ProjectPanel.module.scss b/apps/client/src/features/app-settings/panel/project-panel/ProjectPanel.module.scss index ee664856a..b4abbefbb 100644 --- a/apps/client/src/features/app-settings/panel/project-panel/ProjectPanel.module.scss +++ b/apps/client/src/features/app-settings/panel/project-panel/ProjectPanel.module.scss @@ -6,39 +6,18 @@ color: $blue-500; } -.actionButton { - flex: 1; - text-align: right; -} - .form { display: flex; align-items: center; justify-content: space-between; width: 100%; + gap: 1rem; } .formInput { flex: 2; } -.headerButtons, -.actionButtons, -.createActionButtons { - display: flex; - align-items: center; - gap: 1rem; -} - -.actionButtons { - margin-left: 1rem; -} - -.createActionButtons { - margin-left: 1rem; - justify-content: flex-end; -} - .saveButton { text-transform: capitalize; } @@ -62,12 +41,6 @@ } } -.flex { - display: flex; - gap: 1rem; - height: 100px; -} - .uploadLogoCard { display: flex; gap: 1rem; diff --git a/apps/client/src/features/app-settings/panel/sources-panel/GSheetSetup.tsx b/apps/client/src/features/app-settings/panel/sources-panel/GSheetSetup.tsx index 62a50bbff..6212be309 100644 --- a/apps/client/src/features/app-settings/panel/sources-panel/GSheetSetup.tsx +++ b/apps/client/src/features/app-settings/panel/sources-panel/GSheetSetup.tsx @@ -12,8 +12,6 @@ import * as Panel from '../../panel-utils/PanelUtils'; import useGoogleSheet from './useGoogleSheet'; import { useSheetStore } from './useSheetStore'; -import style from './SourcesPanel.module.scss'; - interface GSheetSetupProps { onCancel: () => void; } @@ -176,7 +174,7 @@ export default function GSheetSetup(props: GSheetSetupProps) { {!canAuthenticate ? ( -
+ -
+
) : ( -
+ {isAuthenticating && } {authKey ? authKey : 'Upload files to generate Auth Key'} @@ -205,7 +203,7 @@ export default function GSheetSetup(props: GSheetSetupProps) { > Authenticate -
+
)}
diff --git a/apps/client/src/features/app-settings/panel/sources-panel/ImportReview.tsx b/apps/client/src/features/app-settings/panel/sources-panel/ImportReview.tsx index e19efe5f6..e3966a0fd 100644 --- a/apps/client/src/features/app-settings/panel/sources-panel/ImportReview.tsx +++ b/apps/client/src/features/app-settings/panel/sources-panel/ImportReview.tsx @@ -8,8 +8,6 @@ import PreviewSpreadsheet from './preview/PreviewRundown'; import useGoogleSheet from './useGoogleSheet'; import { useSheetStore } from './useSheetStore'; -import style from './SourcesPanel.module.scss'; - interface ImportReviewProps { rundown: OntimeRundown; customFields: CustomFields; @@ -40,14 +38,14 @@ export default function ImportReview(props: ImportReviewProps) { Review Rundown -
+ -
+
diff --git a/apps/client/src/features/app-settings/panel/sources-panel/SourcesPanel.module.scss b/apps/client/src/features/app-settings/panel/sources-panel/SourcesPanel.module.scss index 03877e93e..1907a0f31 100644 --- a/apps/client/src/features/app-settings/panel/sources-panel/SourcesPanel.module.scss +++ b/apps/client/src/features/app-settings/panel/sources-panel/SourcesPanel.module.scss @@ -29,17 +29,6 @@ } } -.buttonRow { - display: flex; - gap: 1rem; - align-items: center; - justify-content: end; -} - -.inputContainer { - flex: 1; -} - .singleActionCell { width: 50px; text-align: center; diff --git a/apps/client/src/features/app-settings/panel/sources-panel/import-map/ImportMapForm.tsx b/apps/client/src/features/app-settings/panel/sources-panel/import-map/ImportMapForm.tsx index d6def4b4e..4b6a5f14d 100644 --- a/apps/client/src/features/app-settings/panel/sources-panel/import-map/ImportMapForm.tsx +++ b/apps/client/src/features/app-settings/panel/sources-panel/import-map/ImportMapForm.tsx @@ -84,7 +84,7 @@ export default function ImportMapForm(props: ImportMapFormProps) { Import options -
+ {!isSpreadsheet && ( -
+
@@ -224,11 +224,11 @@ export default function ImportMapForm(props: ImportMapFormProps) { })} - + - + diff --git a/apps/client/src/features/log/Log.module.scss b/apps/client/src/features/log/Log.module.scss index 08dec28f5..87b5f1a56 100644 --- a/apps/client/src/features/log/Log.module.scss +++ b/apps/client/src/features/log/Log.module.scss @@ -42,8 +42,6 @@ $info-hover: $section-white; } .buttonBar { - display: flex; flex-wrap: wrap; - gap: 1em; padding-bottom: 0.5rem; } diff --git a/apps/client/src/features/log/Log.tsx b/apps/client/src/features/log/Log.tsx index 12dd3ad19..3e1b445ab 100644 --- a/apps/client/src/features/log/Log.tsx +++ b/apps/client/src/features/log/Log.tsx @@ -3,6 +3,7 @@ import { Button } from '@chakra-ui/react'; import { LogOrigin } from 'ontime-types'; import { clearLogs, useLogData } from '../../common/stores/logger'; +import * as Panel from '../app-settings/panel-utils/PanelUtils'; import style from './Log.module.scss'; @@ -49,7 +50,7 @@ export default function Log() { return ( <> -
+ -
+
    {filteredData.map((logEntry) => (