feat: project select in the boards row
This commit is contained in:
@ -32,6 +32,7 @@ const Boards = () => {
|
|||||||
mt={"xs"}
|
mt={"xs"}
|
||||||
mb={"sm"}>
|
mb={"sm"}>
|
||||||
<Group
|
<Group
|
||||||
|
align={"end"}
|
||||||
wrap={"nowrap"}
|
wrap={"nowrap"}
|
||||||
gap={0}>
|
gap={0}>
|
||||||
<SortableDnd
|
<SortableDnd
|
||||||
|
|||||||
@ -22,13 +22,18 @@ const Header = () => {
|
|||||||
return (
|
return (
|
||||||
<Group
|
<Group
|
||||||
w={"100%"}
|
w={"100%"}
|
||||||
|
gap={0}
|
||||||
justify={"end"}
|
justify={"end"}
|
||||||
wrap={"nowrap"}
|
wrap={"nowrap"}>
|
||||||
pr={"md"}>
|
<Boards />
|
||||||
<ProjectSelect
|
<ProjectSelect
|
||||||
data={projects}
|
data={projects}
|
||||||
value={selectedProject}
|
value={selectedProject}
|
||||||
onChange={value => value && setSelectedProject(value)}
|
onChange={value => value && setSelectedProject(value)}
|
||||||
|
style={{
|
||||||
|
borderBottom: "solid gray 2px",
|
||||||
|
paddingBottom: 5,
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</Group>
|
</Group>
|
||||||
);
|
);
|
||||||
@ -36,6 +41,7 @@ const Header = () => {
|
|||||||
|
|
||||||
const getMobileHeader = () => {
|
const getMobileHeader = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
<Group justify={"space-between"}>
|
<Group justify={"space-between"}>
|
||||||
<Box
|
<Box
|
||||||
p={"md"}
|
p={"md"}
|
||||||
@ -49,6 +55,8 @@ const Header = () => {
|
|||||||
<IconSettings />
|
<IconSettings />
|
||||||
</Box>
|
</Box>
|
||||||
</Group>
|
</Group>
|
||||||
|
<Boards />
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -60,7 +68,6 @@ const Header = () => {
|
|||||||
gap={0}
|
gap={0}
|
||||||
w={"100%"}>
|
w={"100%"}>
|
||||||
{isMobile ? getMobileHeader() : getDesktopHeader()}
|
{isMobile ? getMobileHeader() : getDesktopHeader()}
|
||||||
<Boards />
|
|
||||||
</Stack>
|
</Stack>
|
||||||
</Group>
|
</Group>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
.container {
|
.container {
|
||||||
|
height: calc(100vh - 150px);
|
||||||
@media (max-width: 48em) {
|
@media (max-width: 48em) {
|
||||||
width: 80vw;
|
width: 80vw;
|
||||||
height: calc(100vh - 200px);
|
height: calc(100vh - 200px);
|
||||||
|
|||||||
@ -22,7 +22,7 @@ const StatusColumnWrapper = ({ renderHeader, children }: Props) => {
|
|||||||
scrollbarSize={10}
|
scrollbarSize={10}
|
||||||
type={"always"}
|
type={"always"}
|
||||||
scrollbars={"y"}>
|
scrollbars={"y"}>
|
||||||
<Stack mah={"calc(100vh - 250px)"}>{children}</Stack>
|
<Stack mah={"calc(100vh - 220px)"}>{children}</Stack>
|
||||||
</ScrollArea>
|
</ScrollArea>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user