Просмотр исходного кода

Done some flex box, set up priority ribbons

master
James McKenzie 3 лет назад
Родитель
Сommit
eb976a16c9
2 измененных файлов: 16 добавлений и 12 удалений
  1. +15
    -11
      ReactLearning/kanban-board/src/App.css
  2. +1
    -1
      ReactLearning/kanban-board/src/components/KBColumn.tsx

+ 15
- 11
ReactLearning/kanban-board/src/App.css Просмотреть файл

@@ -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;
}

+ 1
- 1
ReactLearning/kanban-board/src/components/KBColumn.tsx Просмотреть файл

@@ -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>



Загрузка…
Отмена
Сохранить