Skip to content

Commit

Permalink
Merge pull request #119 from zetkin:issue-79/publishing-button
Browse files Browse the repository at this point in the history
Change pull request button to publishing button
  • Loading branch information
WULCAN authored Jul 28, 2024
2 parents 1ac8bbf + d3d1c46 commit a915370
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ const MessagesPage: NextPage<{
/>
<Sidebar>
<TitleBar languageName={languageName} projectName={projectName} />
<PullRequestButton projectName={projectName} />
<MessageTree
languageName={languageName}
messageId={messageId}
messages={messages}
projectName={projectName}
/>
<PullRequestButton projectName={projectName} />
</Sidebar>
</SidebarContextProvider>
<Main>
Expand Down
1 change: 1 addition & 0 deletions webapp/src/components/MessageTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const MessageTree: FC<MessageTreeProps> = ({
items={tree}
onItemSelectionToggle={onItemSelectionToggle}
slots={{ item: TreeItem2 }}
sx={{ overflowY: 'auto' }}
/>
);
};
Expand Down
6 changes: 4 additions & 2 deletions webapp/src/components/PullRequestButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ const PullRequestButton: FC<PullRequestButtonProps> = ({ projectName }) => {
return (
<>
<Box
p={2}
style={{
alignContent: 'center',
borderTop: '1px solid #c3c7cc',
display: 'flex',
height: 40,
height: 64,
justifyContent: 'center',
}}
>
Expand All @@ -52,7 +54,7 @@ const PullRequestButton: FC<PullRequestButtonProps> = ({ projectName }) => {
type="submit"
variant="contained"
>
Pull Request
Publish changes
</Button>
)}
{state.pullRequestStatus === 'sending' && (
Expand Down
4 changes: 1 addition & 3 deletions webapp/src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ const Sidebar: FC<SidebarProps> = ({ children }) => {
sx={{
display: 'flex',
flexDirection: 'column',
overflowY: 'auto',
p: 2,
rowGap: theme.spacing(2),
overflow: 'hidden',
}}
>
{children}
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/components/TitleBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ const TitleBar: FC<TitleBarProps> = ({ languageName, projectName }) => {
const theme = useTheme();
return (
<Box
px={2}
py={2}
sx={{
alignItems: 'center',
borderBottom: '1px solid #c3c7cc',
columnGap: theme.spacing(1),
display: 'flex',
paddingBottom: theme.spacing(2),
paddingTop: theme.spacing(1),
}}
>
<Link
Expand Down

0 comments on commit a915370

Please sign in to comment.