Skip to content

Commit 6fd7903

Browse files
committed
fix
1 parent 5025717 commit 6fd7903

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

templates/projects/view.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{$canWriteProject := and .CanWriteProjects (or (not .Repository) (not .Repository.IsArchived))}}
22

33
<div class="ui container fluid padded projects-view">
4-
<div class="ui container flex-text-block tw-flex-wrap tw-mb-4 project-header">
5-
<h2 class="tw-mb-0">{{.Project.Title}}</h2>
4+
<div class="ui container flex-text-block project-header">
5+
<h2>{{.Project.Title}}</h2>
66
<div class="tw-flex-1"></div>
77
<div class="ui secondary menu tw-m-0">
88
{{$queryLink := QueryBuild "?" "labels" .SelectLabels "assignee" $.AssigneeID "archived_labels" (Iif $.ShowArchivedLabels "true")}}

web_src/css/features/projects.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88
max-height: calc(100vh - 120px);
99
}
1010

11+
.project-header {
12+
padding: 0.5em 0;
13+
overflow-x: auto; /* in fullscreen mode, the position is fixed, so we can't use "flex wrap" which would change the height */
14+
}
15+
16+
.project-header h2 {
17+
white-space: nowrap;
18+
margin: 0;
19+
}
20+
1121
.project-column {
1222
flex: 0 0 auto;
1323
display: flex;
@@ -97,8 +107,7 @@
97107
top: 0;
98108
left: 0;
99109
right: 0;
100-
margin: 0 !important;
101-
padding: .25rem;
110+
padding: 0.5em;
102111
width: 100%;
103112
max-width: 100%;
104113
background-color: var(--color-body);

web_src/css/modules/menu.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.ui.menu {
22
display: flex;
3+
flex-shrink: 0;
34
margin: 1rem 0;
45
font-family: var(--fonts-regular);
56
font-weight: var(--font-weight-normal);
@@ -643,6 +644,7 @@
643644
display: inline-flex;
644645
margin: 0;
645646
vertical-align: middle;
647+
flex-shrink: 0;
646648
}
647649
.ui.compact.vertical.menu {
648650
display: inline-block;

0 commit comments

Comments
 (0)