diff --git a/client/src/components/AudioRoutingMatrix.css b/client/src/components/AudioRoutingMatrix.css index b862d15..8fd071d 100644 --- a/client/src/components/AudioRoutingMatrix.css +++ b/client/src/components/AudioRoutingMatrix.css @@ -41,20 +41,18 @@ } .routing-matrix { - display: grid; + display: inline-grid; gap: 2px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: 8px; - overflow: hidden; + overflow-x: auto; + max-width: 100%; } .matrix-corner { background: var(--color-surface-hover); -} - -.matrix-header-row { - display: contents; + min-height: 50px; } .matrix-header-cell { @@ -72,10 +70,6 @@ hyphens: auto; } -.matrix-row { - display: contents; -} - .matrix-label-cell { background: var(--color-surface-hover); padding: var(--spacing-sm); diff --git a/client/src/components/AudioRoutingMatrix.jsx b/client/src/components/AudioRoutingMatrix.jsx index f88ab2f..59e63a9 100644 --- a/client/src/components/AudioRoutingMatrix.jsx +++ b/client/src/components/AudioRoutingMatrix.jsx @@ -119,20 +119,18 @@ function AudioRoutingMatrix({ groups, channelNames }) { Sélectionnez quels inputs audio alimentent chaque groupe

-
+
-
- {groups.map(group => ( -
- {group.name} -
- ))} -
+ {groups.map(group => ( +
+ {group.name} +
+ ))} {Array.from({length: 8}, (_, i) => ( -
-
+ <> +
{getChannelName('inputs', i)}
@@ -145,7 +143,7 @@ function AudioRoutingMatrix({ groups, channelNames }) { {isInputRoutedToGroup(String(i), group.id) && }
))} -
+ ))}
@@ -156,20 +154,18 @@ function AudioRoutingMatrix({ groups, channelNames }) { Sélectionnez vers quels outputs chaque groupe envoie son audio

-
+
-
- {Array.from({length: 8}, (_, i) => ( -
- {getChannelName('outputs', i)} -
- ))} -
+ {Array.from({length: 8}, (_, i) => ( +
+ {getChannelName('outputs', i)} +
+ ))} {groups.map(group => ( -
-
+ <> +
{group.name}
@@ -182,7 +178,7 @@ function AudioRoutingMatrix({ groups, channelNames }) { {isGroupRoutedToOutput(group.id, String(i)) && }
))} -
+ ))}