Skip to content

Commit b71882c

Browse files
committed
layout fixes
1 parent 064c5ad commit b71882c

File tree

3 files changed

+38
-36
lines changed

3 files changed

+38
-36
lines changed

templates/repo/activity.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{{template "base/head" .}}
22
<div role="main" aria-label="{{.Title}}" class="page-content repository commits">
33
{{template "repo/header" .}}
4-
<div class="ui container stackable grid">
5-
<div class="four wide column">
4+
<div class="ui container flex-container">
5+
<div class="flex-container-nav">
66
{{template "repo/navbar" .}}
77
</div>
8-
<div class="twelve wide column">
8+
<div class="flex-container-main">
99
{{if .PageIsPulse}}{{template "repo/pulse" .}}{{end}}
1010
{{if .PageIsContributors}}{{template "repo/contributors" .}}{{end}}
1111
</div>

templates/repo/pulse.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
</div>
1818
</div>
1919
</h2>
20-
<div class="divider"></div>
2120

2221
{{if (or (.Permission.CanRead $.UnitTypeIssues) (.Permission.CanRead $.UnitTypePullRequests))}}
2322
<h4 class="ui top attached header">{{ctx.Locale.Tr "repo.activity.overview"}}</h4>

web_src/js/components/RepoContributors.vue

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -275,32 +275,33 @@ export default {
275275

276276
<template>
277277
<div>
278-
<h2 class="ui header">
279-
<relative-time
280-
v-if="dateFrom !== null"
281-
format="datetime"
282-
year="numeric"
283-
month="short"
284-
day="numeric"
285-
weekday=""
286-
:datetime="dateFrom"
287-
>
288-
{{ dateFrom }}
289-
</relative-time>
290-
{{ isLoading ? locale.loadingTitle : errorText ? locale.loadingTitleFailed: "-" }}
291-
<relative-time
292-
v-if="dateUntil !== null"
293-
format="datetime"
294-
year="numeric"
295-
month="short"
296-
day="numeric"
297-
weekday=""
298-
:datetime="dateUntil"
299-
>
300-
{{ dateUntil }}
301-
</relative-time>
302-
303-
<div class="ui right">
278+
<h2 class="ui header gt-df gt-ac gt-sb">
279+
<div>
280+
<relative-time
281+
v-if="dateFrom !== null"
282+
format="datetime"
283+
year="numeric"
284+
month="short"
285+
day="numeric"
286+
weekday=""
287+
:datetime="dateFrom"
288+
>
289+
{{ dateFrom }}
290+
</relative-time>
291+
{{ isLoading ? locale.loadingTitle : errorText ? locale.loadingTitleFailed: "-" }}
292+
<relative-time
293+
v-if="dateUntil !== null"
294+
format="datetime"
295+
year="numeric"
296+
month="short"
297+
day="numeric"
298+
weekday=""
299+
:datetime="dateUntil"
300+
>
301+
{{ dateUntil }}
302+
</relative-time>
303+
</div>
304+
<div>
304305
<!-- Contribution type -->
305306
<div class="ui dropdown jump" id="dropdown">
306307
<div class="ui basic compact button">
@@ -323,8 +324,7 @@ export default {
323324
</div>
324325
</div>
325326
</h2>
326-
<div class="divider"/>
327-
<div class="gt-df main-graph">
327+
<div class="gt-df ui segment main-graph">
328328
<div v-if="isLoading || errorText !== ''" class="gt-tc gt-m-auto">
329329
<div v-if="isLoading">
330330
<SvgIcon name="octicon-sync" class="gt-mr-3 job-status-rotate"/>
@@ -340,11 +340,9 @@ export default {
340340
:data="toGraphData(totalStats.weeks)" :options="getOptions('main')"
341341
/>
342342
</div>
343-
<div class="divider"/>
344-
345-
<div class="ui attached two column grid">
343+
<div class="contributor-grid">
346344
<div
347-
v-for="(contributor, index) in sortedContributors" :key="index" class="column stats-table"
345+
v-for="(contributor, index) in sortedContributors" :key="index" class="stats-table"
348346
v-memo="[sortedContributors, type]"
349347
>
350348
<div class="ui top attached header gt-df gt-f1">
@@ -379,4 +377,9 @@ export default {
379377
.main-graph {
380378
height: 380px;
381379
}
380+
.contributor-grid {
381+
display: grid;
382+
grid-template-columns: repeat(2, 1fr);
383+
gap: 1rem;
384+
}
382385
</style>

0 commit comments

Comments
 (0)