Skip to content

Commit 5faf034

Browse files
committed
Improve mobile contribution page title
1 parent 575cbcf commit 5faf034

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

src/UnisonShare/Page/ProjectContributionPage.elm

+6-4
Original file line numberDiff line numberDiff line change
@@ -345,14 +345,16 @@ detailedPageTitle appContext contribution =
345345
, div [ class "page-title_description" ]
346346
[ span
347347
[ class "from-to" ]
348-
[ text "from"
349-
, span [ class "branches" ]
350-
[ BranchRef.toTag contribution.sourceBranchRef
348+
[ span [ class "branch" ]
349+
[ text "from"
350+
, BranchRef.toTag contribution.sourceBranchRef
351351
|> Tag.withClick (Link.projectBranchRoot contribution.projectRef contribution.sourceBranchRef)
352352
|> Tag.large
353353
|> Tag.view
354354
, CopyOnClick.copyButton (BranchRef.toString contribution.sourceBranchRef)
355-
, text "to"
355+
]
356+
, span [ class "branch" ]
357+
[ text "to"
356358
, BranchRef.toTag contribution.targetBranchRef
357359
|> Tag.withClick (Link.projectBranchRoot contribution.projectRef contribution.targetBranchRef)
358360
|> Tag.large

src/css/unison-share/page/project-contribution-page.css

+14-5
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
text-transform: capitalize;
6060
}
6161

62-
& .branches {
62+
& .branch {
6363
display: flex;
6464
flex-direction: row;
6565
align-items: center;
@@ -108,17 +108,26 @@
108108
& .page-title {
109109
flex: 1;
110110

111-
& .page-title_default-title .text {
112-
gap: 0.5rem;
111+
& h1 {
112+
font-size: 1.25rem;
113113
}
114114
}
115115

116-
& .page-title_description {
116+
& .page-title_description .from-to {
117117
flex-direction: column;
118118
align-items: flex-start;
119-
gap: 0.75rem;
119+
gap: 0.25rem;
120+
121+
& .branch {
122+
gap: 0.25rem;
123+
124+
& .copy-on-click {
125+
display: none;
126+
}
127+
}
120128
}
121129

130+
122131
& .page-title_right-side {
123132
align-self: flex-end;
124133
}

0 commit comments

Comments
 (0)