mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-24 22:22:50 -05:00
Improve display for lower screen heights
This commit is contained in:
@@ -501,11 +501,13 @@ function App({ wsEndpoint, role }) {
|
|||||||
return (
|
return (
|
||||||
<Stack flex="1">
|
<Stack flex="1">
|
||||||
<Stack>
|
<Stack>
|
||||||
<h1>Streamwall ({location.host})</h1>
|
<StyledHeader>
|
||||||
<div>
|
<h1>Streamwall ({location.host})</h1>
|
||||||
connection status: {isConnected ? 'connected' : 'connecting...'}
|
<div>
|
||||||
</div>
|
connection status: {isConnected ? 'connected' : 'connecting...'}
|
||||||
<div>role: {role}</div>
|
</div>
|
||||||
|
<div>role: {role}</div>
|
||||||
|
</StyledHeader>
|
||||||
{delayState && (
|
{delayState && (
|
||||||
<StreamDelayBox
|
<StreamDelayBox
|
||||||
delayState={delayState}
|
delayState={delayState}
|
||||||
@@ -571,7 +573,7 @@ function App({ wsEndpoint, role }) {
|
|||||||
)}
|
)}
|
||||||
</StyledDataContainer>
|
</StyledDataContainer>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Stack flex="1" scroll={true}>
|
<Stack flex="1" scroll={true} minHeight={200}>
|
||||||
<StyledDataContainer isConnected={isConnected}>
|
<StyledDataContainer isConnected={isConnected}>
|
||||||
<div>
|
<div>
|
||||||
{isConnected
|
{isConnected
|
||||||
@@ -656,6 +658,7 @@ const Stack = styled.div`
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex: ${({ flex }) => flex};
|
flex: ${({ flex }) => flex};
|
||||||
${({ scroll }) => scroll && `overflow-y: auto`};
|
${({ scroll }) => scroll && `overflow-y: auto`};
|
||||||
|
${({ minHeight }) => minHeight && `min-height: ${minHeight}px`};
|
||||||
`
|
`
|
||||||
|
|
||||||
function StreamDelayBox({ delayState, setStreamCensored }) {
|
function StreamDelayBox({ delayState, setStreamCensored }) {
|
||||||
@@ -937,6 +940,21 @@ function CustomStreamInput({ idx, onChange, ...props }) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const StyledHeader = styled.header`
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
margin-right: 2rem;
|
||||||
|
}
|
||||||
|
`
|
||||||
|
|
||||||
const StyledStreamDelayBox = styled.div`
|
const StyledStreamDelayBox = styled.div`
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user