feat: misc section for mobile
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user