diff --git a/gradle/changelog/fix_breaking_code_table.yaml b/gradle/changelog/fix_breaking_code_table.yaml new file mode 100644 index 0000000000..8d7f533086 --- /dev/null +++ b/gradle/changelog/fix_breaking_code_table.yaml @@ -0,0 +1,2 @@ +- type: fixed + description: Table in code view breaks at certain screensizes ([1992](https://github.com/scm-manager/scm-manager/issues/1992)) diff --git a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap index 51841ccd78..cb01671788 100644 --- a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap +++ b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap @@ -553,7 +553,7 @@ exports[`Storyshots Buttons/AddButton Default 1`] = ` type="button" > @@ -916,7 +916,7 @@ exports[`Storyshots Buttons/DeleteButton Default 1`] = ` type="button" > @@ -2094,7 +2094,7 @@ exports[`Storyshots Forms/AddKeyValueEntryToTableField Default 1`] = ` type="button" > @@ -2175,7 +2175,7 @@ exports[`Storyshots Forms/AddKeyValueEntryToTableField Disabled 1`] = ` type="button" > @@ -4205,7 +4205,7 @@ exports[`Storyshots GroupEntry Default 1`] = ` type="button" > @@ -4279,7 +4279,7 @@ exports[`Storyshots GroupEntry With long texts 1`] = ` type="button" > @@ -22613,12 +22613,12 @@ exports[`Storyshots Repositories/Changesets Co-Authors with avatar 1`] = ` > @@ -22631,12 +22631,12 @@ exports[`Storyshots Repositories/Changesets Co-Authors with avatar 1`] = ` > @@ -22766,12 +22766,12 @@ exports[`Storyshots Repositories/Changesets Commiter and Co-Authors with avatar > @@ -22784,12 +22784,12 @@ exports[`Storyshots Repositories/Changesets Commiter and Co-Authors with avatar > @@ -22877,12 +22877,12 @@ exports[`Storyshots Repositories/Changesets Default 1`] = ` > @@ -22895,12 +22895,12 @@ exports[`Storyshots Repositories/Changesets Default 1`] = ` > @@ -22998,12 +22998,12 @@ exports[`Storyshots Repositories/Changesets Replacements 1`] = ` > @@ -23016,12 +23016,12 @@ exports[`Storyshots Repositories/Changesets Replacements 1`] = ` > @@ -23121,12 +23121,12 @@ exports[`Storyshots Repositories/Changesets With Committer 1`] = ` > @@ -23139,12 +23139,12 @@ exports[`Storyshots Repositories/Changesets With Committer 1`] = ` > @@ -23253,12 +23253,12 @@ exports[`Storyshots Repositories/Changesets With Committer and Co-Author 1`] = ` > @@ -23271,12 +23271,12 @@ exports[`Storyshots Repositories/Changesets With Committer and Co-Author 1`] = ` > @@ -23377,12 +23377,12 @@ exports[`Storyshots Repositories/Changesets With avatar 1`] = ` > @@ -23395,12 +23395,12 @@ exports[`Storyshots Repositories/Changesets With avatar 1`] = ` > @@ -23497,12 +23497,12 @@ exports[`Storyshots Repositories/Changesets With contactless signature 1`] = ` > @@ -23515,12 +23515,12 @@ exports[`Storyshots Repositories/Changesets With contactless signature 1`] = ` > @@ -23617,12 +23617,12 @@ exports[`Storyshots Repositories/Changesets With invalid signature 1`] = ` > @@ -23635,12 +23635,12 @@ exports[`Storyshots Repositories/Changesets With invalid signature 1`] = ` > @@ -23741,12 +23741,12 @@ exports[`Storyshots Repositories/Changesets With multiple Co-Authors 1`] = ` > @@ -23759,12 +23759,12 @@ exports[`Storyshots Repositories/Changesets With multiple Co-Authors 1`] = ` > @@ -23861,12 +23861,12 @@ exports[`Storyshots Repositories/Changesets With multiple signatures and invalid > @@ -23879,12 +23879,12 @@ exports[`Storyshots Repositories/Changesets With multiple signatures and invalid > @@ -23981,12 +23981,12 @@ exports[`Storyshots Repositories/Changesets With multiple signatures and not fou > @@ -23999,12 +23999,12 @@ exports[`Storyshots Repositories/Changesets With multiple signatures and not fou > @@ -24101,12 +24101,12 @@ exports[`Storyshots Repositories/Changesets With multiple signatures and valid s > @@ -24119,12 +24119,12 @@ exports[`Storyshots Repositories/Changesets With multiple signatures and valid s > @@ -24221,12 +24221,12 @@ exports[`Storyshots Repositories/Changesets With unknown signature 1`] = ` > @@ -24239,12 +24239,12 @@ exports[`Storyshots Repositories/Changesets With unknown signature 1`] = ` > @@ -24341,12 +24341,12 @@ exports[`Storyshots Repositories/Changesets With unowned signature 1`] = ` > @@ -24359,12 +24359,12 @@ exports[`Storyshots Repositories/Changesets With unowned signature 1`] = ` > @@ -24461,12 +24461,12 @@ exports[`Storyshots Repositories/Changesets With valid signature 1`] = ` > @@ -24479,12 +24479,12 @@ exports[`Storyshots Repositories/Changesets With valid signature 1`] = ` > diff --git a/scm-ui/ui-components/src/buttons/Button.tsx b/scm-ui/ui-components/src/buttons/Button.tsx index 2f7aa4efc9..525d7a17e4 100644 --- a/scm-ui/ui-components/src/buttons/Button.tsx +++ b/scm-ui/ui-components/src/buttons/Button.tsx @@ -70,7 +70,7 @@ const Button: FC = ({ innerRef }) => { const renderIcon = () => { - return <>{icon ? : null}; + return <>{icon ? : null}; }; const classes = classNames( diff --git a/scm-ui/ui-components/src/repos/changesets/ChangesetButtonGroup.tsx b/scm-ui/ui-components/src/repos/changesets/ChangesetButtonGroup.tsx index 56f68e0424..7c85c31244 100644 --- a/scm-ui/ui-components/src/repos/changesets/ChangesetButtonGroup.tsx +++ b/scm-ui/ui-components/src/repos/changesets/ChangesetButtonGroup.tsx @@ -26,6 +26,7 @@ import { Changeset, File, Repository } from "@scm-manager/ui-types"; import { Button, ButtonAddons } from "../../buttons"; import { createChangesetLink, createSourcesLink } from "./changesets"; import { useTranslation } from "react-i18next"; +import styled from "styled-components"; type Props = { repository: Repository; @@ -33,14 +34,24 @@ type Props = { file?: File; }; +const SwitcherButton = styled(Button)` + padding-right: 0.75rem; + padding-left: 0.75rem; +`; + const ChangesetButtonGroup: FC = ({ repository, changeset, file }) => { const [t] = useTranslation("repos"); const changesetLink = createChangesetLink(repository, changeset); const sourcesLink = createSourcesLink(repository, changeset, file); return ( -