Skip to content

Commit

Permalink
Update fitting method of team member cards
Browse files Browse the repository at this point in the history
  • Loading branch information
nasaownsky committed Nov 27, 2024
1 parent 8271073 commit f6fa852
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions publisher/src/components/AdminPanel/AdminPanel.styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export const InputLabelWrapper = styled.div<{
input,
input[type="button"] {
width: 100%;
min-width: 190px;
min-width: 200px;
font-size: 0.8rem;
font-weight: 400;
line-height: 1rem;
Expand Down Expand Up @@ -334,8 +334,9 @@ export const ButtonWrapper = styled.div`
`;

export const TeamMembersContainer = styled.div`
display: flex;
flex-wrap: wrap;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 10px;
margin-top: 12px;
`;

Expand All @@ -346,20 +347,16 @@ export const TeamMemberCard = styled.div<{
${typography.sizeCSS.normal}
display: flex;
flex-direction: column;
width: 230px;
width: 100%;
min-width: 240px;
align-items: flex-start;
justify-content: center;
border: 1px solid ${palette.highlight.grey5};
border-radius: 4px;
padding: 16px;
margin: 5px;
${({ added }) => added && `background: ${palette.gradient.lightgreen};`}
${({ deleted }) => deleted && `background: ${palette.gradient.lightred};`}
input[type="button"] {
width: 190px;
}
`;

/** Chips */
Expand Down Expand Up @@ -480,6 +477,7 @@ export const ChipContainerLabel = styled.label<{
export const ChipName = styled.div``;

export const ChipRole = styled.div`
width: 100%;
color: ${palette.solid.green};
`;

Expand Down

0 comments on commit f6fa852

Please sign in to comment.