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

fix: align side panel content section header #5367

Merged
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
27 changes: 13 additions & 14 deletions src/app/base/components/AppSidePanel/AppSidePanel.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useEffect, type ReactNode } from "react";

import { Col, Row, useOnEscapePressed } from "@canonical/react-components";
import { ContentSection } from "@canonical/maas-react-components";
import { useOnEscapePressed } from "@canonical/react-components";
import classNames from "classnames";
import { useHistory } from "react-router-dom";

Expand Down Expand Up @@ -60,20 +61,18 @@ const AppSidePanelContent = ({
data-testid="app-side-panel"
id="aside-panel"
>
<Row>
<Col size={12}>
{title ? (
<div className="row section-header">
<div className="col-12">
<h3 className="section-header__title u-flex--no-shrink p-heading--4">
{title}
</h3>
</div>
<ContentSection>
{title ? (
<div className="row section-header section-header--side-panel">
<div className="col-12">
<h3 className="section-header__title u-flex--no-shrink p-heading--4">
{title}
</h3>
</div>
) : null}
{content}
</Col>
</Row>
</div>
) : null}
{content}
</ContentSection>
</aside>
);
};
Expand Down
Loading