From f795dc52c7d93eb87f4e36866934b0bf3c012514 Mon Sep 17 00:00:00 2001 From: Egor Stronhin Date: Mon, 6 Jan 2025 12:29:09 +0200 Subject: [PATCH] feat: Improve pulls UI --- .../components/Project/hooks/usePulls/usePulls.styles.ts | 5 +++++ src/rendered/components/Project/hooks/usePulls/usePulls.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/rendered/components/Project/hooks/usePulls/usePulls.styles.ts b/src/rendered/components/Project/hooks/usePulls/usePulls.styles.ts index b2284ab..ac87b0c 100644 --- a/src/rendered/components/Project/hooks/usePulls/usePulls.styles.ts +++ b/src/rendered/components/Project/hooks/usePulls/usePulls.styles.ts @@ -9,6 +9,7 @@ export const Empty = styled.div` `; export const Title = styled.div` + opacity: 0; position: absolute; top: -10px; left: 15px; @@ -64,6 +65,10 @@ export const WrapBlock = styled.div` ${Actions} { opacity: 1; } + + ${Title} { + opacity: 1; + } } @media (prefers-color-scheme: dark) { diff --git a/src/rendered/components/Project/hooks/usePulls/usePulls.tsx b/src/rendered/components/Project/hooks/usePulls/usePulls.tsx index 11d1e42..c475409 100644 --- a/src/rendered/components/Project/hooks/usePulls/usePulls.tsx +++ b/src/rendered/components/Project/hooks/usePulls/usePulls.tsx @@ -83,7 +83,7 @@ export const usePulls = (project: Project) => { ))} - <span>Pull requests ({pullType})</span> + <span>Pull requests ({aliases[pullType]})</span>