Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 63 additions & 13 deletions app/facilitator/styles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { CgSpaceBetween } from "react-icons/cg";

Check warning on line 1 in app/facilitator/styles.ts

View workflow job for this annotation

GitHub Actions / Run ESLint, Prettier, and TypeScript compiler

'CgSpaceBetween' is defined but never used
import { StylesConfig } from "react-select";
import styled from "styled-components";
import COLORS from "@/styles/colors";
import { Flex } from "@/styles/containers";

Check warning on line 5 in app/facilitator/styles.ts

View workflow job for this annotation

GitHub Actions / Run ESLint, Prettier, and TypeScript compiler

'Flex' is defined but never used
import { Sans } from "@/styles/fonts";
import { DropdownOption } from "@/types/dropdown";

Expand Down Expand Up @@ -50,34 +52,47 @@
display: flex;
flex-direction: column;
width: 100%;
heigth: 32px;
padding: 2rem;
padding-top: 1rem;
background-color: ${COLORS.white};
background: ${COLORS.white};
`;

export const SearchBarStyled = styled.div`
width: 100%;
width: 24rem;
height: 24px;
margin-bottom: 1rem;
`;

export const SearchInput = styled.input`
border: 1px solid ${COLORS.oat_medium};
border-radius: 8px;
padding: 0.5rem 1rem;
border-radius: 4px;
padding: 0.5rem 0.75rem 0.5rem 1.5rem; /* πŸ‘ˆ extra left padding */
width: 100%;
height: 2.75rem;
height: 32px;
margin-bottom: 1rem;
color: ${COLORS.black70};
font-family: ${Sans.style.fontFamily};
font-size: 12px;
background-color: ${COLORS.oat_light};
background-color: ${COLORS.white};
&::placeholder {
color: ${COLORS.black40}; /* πŸ‘ˆ placeholder color */
opacity: 1; /* πŸ‘ˆ important (browsers reduce opacity by default) */
}
&:focus {
outline: none;
border-color: ${COLORS.darkElectricBlue}; /* βœ… same width */
box-shadow: 0 0 0 .75px ${COLORS.darkElectricBlue}; /* βœ… focus ring */
}
}
`;

export const Heading3 = styled.h3`
font-family: ${Sans.style.fontFamily};
font-size: 24px;
font-weight: 700;
margin-bottom: 0.5rem;

font-style: normal;
line-height: normal;
`;
Expand All @@ -98,23 +113,24 @@

border-radius: 0.5rem 0.5rem 0 0;
border-bottom: 1px solid ${COLORS.oat_medium};
padding: 1rem 2rem;
padding: 0.5rem 0.75rem;
list-style-type: none;
font-family: ${Sans.style.fontFamily};
font-size: 12px;
font-weight: 500;
color: ${COLORS.black70};
min-height: 4rem;
align-items: start;
min-height: 2rem;
align-items: center;
`;

export const GeneralTitle = styled.h1`
display: grid;
grid-template-columns: 1.5fr 1.1fr 1.9fr;
grid-template-columns: 1.5fr 1fr 2fr;
column-gap: 1rem;
align-items: center;
border-bottom: 1px solid ${COLORS.oat_medium};
border-radius: 0.5rem 0.5rem 0 0;
padding: 1.25rem 2rem 1.25rem 2rem;
padding: 1.25rem 1.25rem 0.5rem 0.75rem;
background: ${COLORS.white};
font-family: ${Sans.style.fontFamily};
color: ${COLORS.black40};
Expand All @@ -141,9 +157,11 @@

export const ConfigRow = styled.div`
display: flex;
height: fit-content;
max-height: 3rem;
justify-content: flex-start;
align-items: flex-end;
margin-bottom: 2rem;
align-items: flex-center;
margin-bottom: 0rem;
gap: 2rem;
`;

Expand Down Expand Up @@ -362,3 +380,35 @@
color: #e53e3e;
}
`;

export const FilterPlusSearch = styled.main`
display: flex;
justify-content: space-between;
gap: 16px;
flex-direction: row;
width: 100%;
height: 32px;
`;

export const TemplatesAndFilterPlusSearch = styled.main`
display: flex;
justify-content: space-between;
gap: 24px;
flex-direction: column;
width: 100%;
`;

export const SearchWrapper = styled.div`
position: relative;
width: 100%;
`;

export const SearchIcon = styled.div`
position: absolute;
left: 10px;
top: 35%;
transform: translateY(-50%);
display: flex;
align-items: center;
pointer-events: none;
`;
6 changes: 3 additions & 3 deletions app/facilitator/template-list/components/TemplateSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface TemplateSideBarProps {
setFilterMode: (val: "all" | "your" | "browse") => void;
onDeleteConfirmed?: (tagId: UUID) => void;
user_group_id: UUID;
selectedTagId: UUID | null;
selectedTagIds: UUID[] | null;
onTagClick: (id: UUID) => void;
onTagRenamed: () => void;
}
Expand All @@ -34,7 +34,7 @@ export default function TemplateSideBar({
setFilterMode,
onDeleteConfirmed,
user_group_id,
selectedTagId,
selectedTagIds,
onTagClick,
onTagRenamed,
}: TemplateSideBarProps) {
Expand Down Expand Up @@ -105,7 +105,7 @@ export default function TemplateSideBar({
<AccordionDetails sx={{ padding: 0 }}>
<TagCreator
user_group_id={user_group_id}
selectedTagId={selectedTagId}
selectedTagIds={selectedTagIds}
onTagClick={onTagClick}
onTagRenamed={onTagRenamed}
onDeleteTag={handleRequestDelete}
Expand Down
Loading
Loading