Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Publisher][Admin Panel] Fit 3 team member cards in a row #1598

Merged
merged 2 commits into from
Nov 29, 2024
Merged
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
18 changes: 8 additions & 10 deletions publisher/src/components/AdminPanel/AdminPanel.styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const ModalWrapper = styled.div``;

export const ModalContainer = styled.div<{ offScreen?: boolean }>`
height: 90vh;
width: 50vw;
width: 60vw;
background: ${palette.solid.white};
border-radius: 4px;
padding: 32px;
Expand Down Expand Up @@ -249,7 +249,7 @@ export const InputLabelWrapper = styled.div<{
input,
input[type="button"] {
width: 100%;
min-width: 210px;
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));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nice! Always forget we can just do it this way. 👏

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: 250px;
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: 210px;
}
`;

/** 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
Loading