Skip to content

Commit

Permalink
fix: add max width to sidebar and prevent button text to wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Aug 26, 2024
1 parent 4a21750 commit 04f3a80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/library-authoring/LibraryAuthoringPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const LibraryAuthoringPage = () => {
</Container>
</Col>
{ !!sidebarBodyComponent && (
<Col lg={5} xl={4} className="box-shadow-left-1 bg-white">
<Col lg={4} className="mw-xs ox-shadow-left-1 bg-white">
<LibrarySidebar library={libraryData} />
</Col>
)}
Expand Down
8 changes: 4 additions & 4 deletions src/library-authoring/component-info/ComponentInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ const ComponentInfo = ({ usageKey } : ComponentInfoProps) => {

return (
<Stack>
<Stack direction="horizontal" gap={1} className="d-flex justify-content-around">
<Button disabled variant="outline-primary rounded-0">
<div className="d-flex flex-wrap align-content-around">
<Button disabled variant="outline-primary" className="m-1 text-nowrap flex-grow-1">
{intl.formatMessage(messages.editComponentButtonTitle)}
</Button>
<Button disabled variant="outline-primary rounded-0">
<Button disabled variant="outline-primary" className="m-1 text-nowrap flex-grow-1">
{intl.formatMessage(messages.publishComponentButtonTitle)}
</Button>
<ComponentMenu usageKey={usageKey} />
</Stack>
</div>
<Tabs
variant="tabs"
className="my-3 d-flex justify-content-around"
Expand Down

0 comments on commit 04f3a80

Please sign in to comment.