Skip to content

Commit

Permalink
remove titles from detail pages for design (#3939)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshri committed Aug 15, 2023
1 parent 99cb849 commit 1de1c42
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 18 deletions.
3 changes: 0 additions & 3 deletions ui/components/AutomationDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,6 @@ export default styled(AutomationDetail).attrs({
${Collapsible} {
width: 100%;
}
${PageStatus} {
padding: ${(props) => props.theme.spacing.small} 0px;
}
.collapse-wrapper {
padding: 16px 44px;
width: 100%;
Expand Down
7 changes: 0 additions & 7 deletions ui/components/ImageAutomation/ImageAutomationDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import PageStatus from "../PageStatus";
import Spacer from "../Spacer";
import SubRouterTabs, { RouterTab } from "../SubRouterTabs";
import SyncActions from "../SyncActions";
import Text from "../Text";
import YamlView from "../YamlView";

interface Props {
Expand All @@ -32,9 +31,6 @@ const ImageAutomationDetails = ({

return (
<Flex wide tall column className={className}>
<Text size="large" semiBold titleHeight>
{name}
</Text>
<PageStatus conditions={conditions} suspended={suspended} />
{kind !== Kind.ImagePolicy && (
<SyncActions
Expand Down Expand Up @@ -85,9 +81,6 @@ const ImageAutomationDetails = ({
export default styled(ImageAutomationDetails).attrs({
className: ImageAutomationDetails.name,
})`
${PageStatus} {
padding: ${(props) => props.theme.spacing.small} 0px;
}
${SubRouterTabs} {
margin-top: ${(props) => props.theme.spacing.medium};
}
Expand Down
1 change: 1 addition & 0 deletions ui/components/PageStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ function PageStatus({
);
}
export default styled(PageStatus).attrs({ className: PageStatus.name })`
padding-bottom: ${(props) => props.theme.spacing.small};
transition-property: max-height;
transition-duration: 0.5s;
transition-timing-function: ease-in-out;
Expand Down
2 changes: 1 addition & 1 deletion ui/components/PodDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function PodDetail({ className, pod }: Props) {

export default styled(PodDetail).attrs({ className: PodDetail.name })`
height: 100%;
${PageStatus}, ${NoDialogDataTable} {
${NoDialogDataTable} {
margin-bottom: ${(props) => props.theme.spacing.small};
}
`;
7 changes: 0 additions & 7 deletions ui/components/SourceDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import Metadata from "./Metadata";
import PageStatus from "./PageStatus";
import SubRouterTabs, { RouterTab } from "./SubRouterTabs";
import SyncActions from "./SyncActions";
import Text from "./Text";
import YamlView from "./YamlView";

type Props = {
Expand Down Expand Up @@ -65,9 +64,6 @@ function SourceDetail({ className, source, info, type, customActions }: Props) {

return (
<Flex wide tall column className={className}>
<Text size="large" semiBold titleHeight>
{source.name}
</Text>
<PageStatus conditions={source.conditions} suspended={source.suspended} />
<SyncActions
name={name}
Expand Down Expand Up @@ -115,9 +111,6 @@ function SourceDetail({ className, source, info, type, customActions }: Props) {
}

export default styled(SourceDetail).attrs({ className: SourceDetail.name })`
${PageStatus} {
padding: ${(props) => props.theme.spacing.small} 0px;
}
${SubRouterTabs} {
margin-top: ${(props) => props.theme.spacing.medium};
}
Expand Down

0 comments on commit 1de1c42

Please sign in to comment.