mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-10 08:39:34 +00:00
style: fix info scroll
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
color: $section-white;
|
color: $section-white;
|
||||||
|
margin-top: $main-spacing;
|
||||||
border-bottom: 1px solid $border-color-ondark;
|
border-bottom: 1px solid $border-color-ondark;
|
||||||
padding-bottom: $element-inner-spacing;
|
padding-bottom: $element-inner-spacing;
|
||||||
margin-bottom: $element-spacing;
|
margin-bottom: $element-spacing;
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ $playback-width: 450px;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
background-color: #202020;
|
background-color: $gray-1200;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
border-left: 1px solid $white-10;
|
border-left: 1px solid $white-10;
|
||||||
}
|
}
|
||||||
@@ -172,10 +172,8 @@ $playback-width: 450px;
|
|||||||
|
|
||||||
.editor {
|
.editor {
|
||||||
grid-area: even;
|
grid-area: even;
|
||||||
height: calc(100% - 24px);
|
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
height: calc(100% - 24px);
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -187,7 +185,6 @@ $playback-width: 450px;
|
|||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: calc(100% - 24px);
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ import { PropsWithChildren, useState } from 'react';
|
|||||||
|
|
||||||
import CollapseBar from '../../common/components/collapse-bar/CollapseBar';
|
import CollapseBar from '../../common/components/collapse-bar/CollapseBar';
|
||||||
|
|
||||||
import style from './Info.module.scss';
|
|
||||||
|
|
||||||
interface CollapsableInfoProps {
|
interface CollapsableInfoProps {
|
||||||
title: string;
|
title: string;
|
||||||
}
|
}
|
||||||
@@ -13,9 +11,9 @@ export default function CollapsableInfo(props: PropsWithChildren<CollapsableInfo
|
|||||||
const [collapsed, setCollapsed] = useState(false);
|
const [collapsed, setCollapsed] = useState(false);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={style.container}>
|
<>
|
||||||
<CollapseBar title={title} isCollapsed={collapsed} onClick={() => setCollapsed((prev) => !prev)} />
|
<CollapseBar title={title} isCollapsed={collapsed} onClick={() => setCollapsed((prev) => !prev)} />
|
||||||
{!collapsed && children}
|
{!collapsed && children}
|
||||||
</div>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,10 +9,6 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
|
||||||
margin-top: $main-spacing;
|
|
||||||
}
|
|
||||||
|
|
||||||
.labels {
|
.labels {
|
||||||
font-size: $inner-section-text-size;
|
font-size: $inner-section-text-size;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -4,12 +4,8 @@
|
|||||||
$info-gray: $secondary-text-gray;
|
$info-gray: $secondary-text-gray;
|
||||||
$info-hover: $section-white;
|
$info-hover: $section-white;
|
||||||
|
|
||||||
.infoLoggerContainer {
|
|
||||||
max-height: 80%;
|
|
||||||
height: 100%
|
|
||||||
}
|
|
||||||
|
|
||||||
.log {
|
.log {
|
||||||
|
flex: 1;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export default function InfoLogger() {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={style.infoLoggerContainer}>
|
<>
|
||||||
<div className={style.buttonBar}>
|
<div className={style.buttonBar}>
|
||||||
<Button
|
<Button
|
||||||
variant={showUser ? 'ontime-filled' : 'ontime-subtle'}
|
variant={showUser ? 'ontime-filled' : 'ontime-subtle'}
|
||||||
@@ -125,6 +125,6 @@ export default function InfoLogger() {
|
|||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user