Done some flex box, set up priority ribbons

This commit is contained in:
James McKenzie 2021-04-28 15:34:07 +12:00
parent 48788e643d
commit eb976a16c9
2 changed files with 16 additions and 12 deletions

View File

@ -28,6 +28,7 @@ html {
justify-content:flex-start;
float: left;
width: initial;
position: relative;
height: auto;
flex-grow: inherit;
border-color: #ddd;
@ -42,28 +43,31 @@ html {
.taskWrapper{
display: flex;
min-height: 100px;
flex-direction: row;
align-items: stretch;
position: relative;
}
.prioBlock{
order: 1;
flex: 1;
display: block;
height:100vh;
overflow: auto;
background-color: aqua;
width: inherit;
display: flex;
overflow:hidden;
}
.taskText{
order: 5;
width: 80%;
flex: 5;
height: 100%;
}
.panel {
width: 100%;
}
.prioBlock:after
{
content: '.';
visibility: hidden;
}

View File

@ -29,7 +29,7 @@ const KBColumn = (props: KBColumnProps) => {
return (
<div style={{borderColor: "#ccc", borderWidth: "1px", borderStyle: "solid", margin: "10px"}} className="taskWrapper">
<div style={{width: "20px", height: "100%", backgroundColor: bgc, display: "inline"}} className="prioBlock"></div>
<div style={{ backgroundColor: bgc, display: "inline"}} className="prioBlock" title={task.priority}></div>
<div className="taskText">
<p> {task.title} </p>