fix: make panes scrollable (#14)

Sidebar panes can now be scrolled if the content inside is too long.
This commit is contained in:
Jacob
2022-06-22 15:31:43 +02:00
committed by GitHub
parent eb00a26901
commit dc9fd38028
5 changed files with 26 additions and 16 deletions

View File

@@ -131,8 +131,12 @@
}
.value {
overflow: hidden;
text-overflow: ellipsis;
&::before {
content: attr(data-value);
white-space: nowrap;
}
&[data-full]:hover::before {

View File

@@ -67,6 +67,11 @@ function YesNodeSelected({node}: {node: Node}) {
})`;
}
// Temporary padding and margin support
if (typeof value === 'object' && 'left' in value) {
value = `${value.top}, ${value.right}, ${value.bottom}, ${value.left}`;
}
return (
<Group>
<Label>{key}</Label>

View File

@@ -6,6 +6,7 @@
width: 100%;
height: 100%;
padding: 16px;
overflow-y: scroll;
}
.header {

View File

@@ -16,21 +16,9 @@
.timeline {
overflow-x: auto;
overflow-y: auto;
overflow-y: hidden;
flex-grow: 1;
position: relative;
&::-webkit-scrollbar {
width: 16px;
height: 16px;
background-color: #242424;
}
&::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.24);
border: 6px solid #242424;
border-radius: 8px;
}
}
.track {
@@ -247,4 +235,4 @@
.audioTrack {
opacity: 0.16;
margin: 24px 0;
}
}

View File

@@ -5,7 +5,19 @@
* {
box-sizing: border-box;
font-family: "JetBrains Mono", sans-serif;
font-family: 'JetBrains Mono', sans-serif;
&::-webkit-scrollbar {
width: 16px;
height: 16px;
background-color: #242424;
}
&::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.24);
border: 6px solid #242424;
border-radius: 8px;
}
}
html,
@@ -20,4 +32,4 @@ body {
main {
width: 100vw;
height: 100vh;
}
}