Skip to content

Commit a0bcb84

Browse files
committed
more fixes
1 parent fad58a9 commit a0bcb84

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

src/components/pages/projectDetails/projectDetailsPage.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import dayjs from '@/lib/dayjs';
55
import { CopyToClipboard, DetailedStats } from '@uselagoon/ui-library';
66
import giturlparse from 'git-url-parse';
77

8+
import { StyledGitLink } from './styles';
9+
810
interface ProjectDetailsProps {
911
project: ProjectDetailsData['project'];
1012
}
@@ -32,15 +34,15 @@ export default function ProjectDetailsPage(props: ProjectDetailsProps) {
3234
key: 'origin',
3335
label: 'ORIGIN',
3436
children: (
35-
<a className="hover-state" data-cy="gitLink" target="_blank" href={`https://${gitLink}`}>
37+
<StyledGitLink className="hover-state" data-cy="gitLink" target="_blank" href={`https://${gitLink}`}>
3638
{gitLink}
37-
</a>
39+
</StyledGitLink>
3840
),
3941
},
4042
{
4143
key: 'giturl',
4244
label: 'GIT URL',
43-
children: <CopyToClipboard type="visible" withToolTip text={project.gitUrl} />,
45+
children: <CopyToClipboard fontSize="1.5rem" type="visible" withToolTip text={project.gitUrl} />,
4446
},
4547
{
4648
key: 'branches',
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import styled from 'styled-components';
2+
3+
export const StyledGitLink = styled.a`
4+
word-wrap: break-word;
5+
color: inherit;
6+
`;

yarn.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3412,7 +3412,7 @@
34123412

34133413
"@uselagoon/ui-library@github:uselagoon/ui-library":
34143414
version "1.1.2"
3415-
resolved "https://codeload.github.com/uselagoon/ui-library/tar.gz/1057ec867fbaa76898fb82b493ff806fab1e8aa2"
3415+
resolved "https://codeload.github.com/uselagoon/ui-library/tar.gz/ad2699ae17d334a2900c70cf92b6e2cd32caa849"
34163416
dependencies:
34173417
dayjs "^1.11.13"
34183418
react-highlight-words "^0.20.0"
@@ -10323,6 +10323,7 @@ wordwrap@^1.0.0:
1032310323
integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==
1032410324

1032510325
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
10326+
name wrap-ansi-cjs
1032610327
version "7.0.0"
1032710328
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
1032810329
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==

0 commit comments

Comments
 (0)