mirror of
https://github.com/Steffo99/todocolors.git
synced 2024-11-22 08:14:18 +00:00
Tweak task group column size
This commit is contained in:
parent
9a4a857e9c
commit
e771b49351
3 changed files with 16 additions and 4 deletions
|
@ -10,13 +10,13 @@ export function BoardMain() {
|
||||||
|
|
||||||
switch(websocketState) {
|
switch(websocketState) {
|
||||||
case undefined:
|
case undefined:
|
||||||
return <BoardMainIcon icon={<FontAwesomeIcon icon={faGear} spin/>} text={"Caricamento..."}/>
|
return <BoardMainIcon icon={<FontAwesomeIcon size={"4x"} icon={faGear} spin/>} text={"Caricamento..."}/>
|
||||||
case WebSocket.CONNECTING:
|
case WebSocket.CONNECTING:
|
||||||
return <BoardMainIcon icon={<FontAwesomeIcon icon={faArrowsSpin} spin/>} text={"Connessione..."}/>
|
return <BoardMainIcon icon={<FontAwesomeIcon size={"4x"} icon={faArrowsSpin} spin/>} text={"Connessione..."}/>
|
||||||
case WebSocket.OPEN:
|
case WebSocket.OPEN:
|
||||||
return <BoardMainTaskGroups/>
|
return <BoardMainTaskGroups/>
|
||||||
case WebSocket.CLOSING:
|
case WebSocket.CLOSING:
|
||||||
case WebSocket.CLOSED:
|
case WebSocket.CLOSED:
|
||||||
return <BoardMainIcon icon={<FontAwesomeIcon icon={faExclamationCircle}/>} text={"Errore"} className={"red"}/>
|
return <BoardMainIcon icon={<FontAwesomeIcon size={"4x"} icon={faExclamationCircle}/>} text={"Errore"} className={"red"}/>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
.boardMainTaskGroups {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
justify-content: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.boardMainTaskGroups > div {
|
||||||
|
flex-basis: 240px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
|
@ -1,12 +1,13 @@
|
||||||
import {TaskGroupColumn} from "@/app/board/[board]/TaskGroupColumn"
|
import {TaskGroupColumn} from "@/app/board/[board]/TaskGroupColumn"
|
||||||
import {useBoardContext} from "@/app/board/[board]/useBoardContext"
|
import {useBoardContext} from "@/app/board/[board]/useBoardContext"
|
||||||
|
import style from "./BoardMainTaskGroups.module.css"
|
||||||
|
|
||||||
|
|
||||||
export function BoardMainTaskGroups() {
|
export function BoardMainTaskGroups() {
|
||||||
const {taskGroups} = useBoardContext()
|
const {taskGroups} = useBoardContext()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className={"chapter-5"}>
|
<main className={style.boardMainTaskGroups}>
|
||||||
{taskGroups.map((tg) => <TaskGroupColumn taskGroup={tg}/>)}
|
{taskGroups.map((tg) => <TaskGroupColumn taskGroup={tg}/>)}
|
||||||
</main>
|
</main>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue