Skip to content

Commit

Permalink
Merge branch 'master' into stacks-v2-porter-app-run
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen authored Sep 22, 2023
2 parents 24e115f + 8545694 commit 7f01c0a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 19 deletions.
6 changes: 4 additions & 2 deletions dashboard/src/components/image-selector/ImageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,10 @@ const ImageItem = styled.div<{ lastItem: boolean; isSelected: boolean }>`
border-bottom: 1px solid
${(props) => (props.lastItem ? "#00000000" : "#606166")};
color: #ffffff;
user-select: none;
align-items: center;
padding: 10px 0px;
cursor: pointer;
user-select: text;
cursor: text;
background: ${(props) => (props.isSelected ? "#ffffff11" : "")};
:hover {
background: #ffffff22;
Expand All @@ -342,6 +342,8 @@ const LoadingWrapper = styled.div`
font-size: 13px;
justify-content: center;
color: #ffffff44;
user-select: text;
cursor: text;
`;

const ExpandedWrapper = styled.div`
Expand Down
4 changes: 2 additions & 2 deletions dashboard/src/components/image-selector/ImageSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,11 @@ const ImageItem = styled.div`
width: 100%;
font-size: 13px;
border-bottom: 1px solid
user-select: text;
cursor: text;
${(props: { lastItem: boolean; isSelected: boolean }) =>
props.lastItem ? "#00000000" : "#606166"};
color: #ffffff;
user-select: none;
align-items: center;
padding: 10px 0px;
cursor: pointer;
Expand Down Expand Up @@ -307,7 +308,6 @@ const StyledImageSelector = styled.div`
background: ${(props: { isExpanded: boolean; forceExpanded: boolean }) =>
props.isExpanded ? "#ffffff11" : ""};
border-radius: 3px;
user-select: none;
height: 40px;
font-size: 13px;
color: #ffffff;
Expand Down
25 changes: 12 additions & 13 deletions dashboard/src/components/image-selector/TagList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ var ecrRepoRegex = /(^[a-zA-Z0-9][a-zA-Z0-9-_]*)\.dkr\.ecr(\-fips)?\.([a-zA-Z0-9

type PropsType =
| {
setSelectedTag: (x: string) => void;
selectedTag: string;
selectedImageUrl: string;
registryId: number;
readOnly?: boolean;
}
setSelectedTag: (x: string) => void;
selectedTag: string;
selectedImageUrl: string;
registryId: number;
readOnly?: boolean;
}
| {
setSelectedTag?: (x: string) => void;
selectedTag: string;
selectedImageUrl: string;
registryId: number;
readOnly: true;
};
setSelectedTag?: (x: string) => void;
selectedTag: string;
selectedImageUrl: string;
registryId: number;
readOnly: true;
};

type StateType = {
loading: boolean;
Expand Down Expand Up @@ -196,7 +196,6 @@ const TagName = styled.div<{ lastItem?: boolean; isSelected?: boolean }>`
border-bottom: 1px solid
${(props) => (props.lastItem ? "#00000000" : "#606166")};
color: #ffffff;
user-select: none;
align-items: center;
padding: 10px 0px;
cursor: pointer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const RegistryImageList: React.FC<{
setImageList(res.data);
})
.catch(console.error);
return () => {};
return () => { };
}, []);

const getIcon = () => {
Expand Down Expand Up @@ -90,7 +90,8 @@ const ImageRow = styled.div<{ isLast?: boolean }>`
align-items: center;
font-size: 13px;
padding: 12px;
user-select: text;
> img {
width: 20px;
filter: grayscale(100%);
Expand All @@ -105,4 +106,5 @@ const ImageList = styled.div`
overflow-y: auto;
background: #ffffff11;
margin: 20px 0 20px;
user-select: text;
`;

0 comments on commit 7f01c0a

Please sign in to comment.