feat: misc section for mobile

This commit is contained in:
Lucas
2026-10-30 15:25:12 +01:00
parent 51c0c44ded
commit f78d872625
5 changed files with 387 additions and 30 deletions
@@ -1,4 +1,5 @@
import { useEffect, useState } from 'react';
import { createPortal } from 'react-dom';
import { DSP408 } from '../../../../types';
import { Channel, InputChannel, OutputChannel } from '../../types';
@@ -244,7 +245,7 @@ function LinkChannelsModal({
}
};
return (
return createPortal(
<div
className="link-channels-overlay"
onMouseDown={(e) => {
@@ -286,7 +287,9 @@ function LinkChannelsModal({
<div
className="link-matrix"
style={{ gridTemplateColumns: `auto repeat(${channels.length}, 1fr)` }}
style={{
gridTemplateColumns: `minmax(38px, auto) repeat(${channels.length}, minmax(28px, 1fr))`,
}}
>
<div className="link-matrix__corner" />
@@ -361,7 +364,8 @@ function LinkChannelsModal({
</Button>
</div>
</Card>
</div>
</div>,
document.body
);
}