瀏覽代碼

Done some flex box, set up priority ribbons

master
James McKenzie 3 年之前
父節點
當前提交
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>



Loading…
取消
儲存