Skip to content

Commit 11481f6

Browse files
authored
Merge pull request #157 from suma-project/big-activity-groups
client: show activityGroups with more than 10 activities in their own row
2 parents ba6267a + 4437516 commit 11481f6

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

web-sourcecode/src/components/SumaClient.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
<div v-if="settings.lastCount && lastCount">Last count for <span v-html="locationtitle"></span> recorded at: {{lastCount}}</div>
8787
<form @submit.prevent="addToCount(countNumber)">
8888
<div v-if="Object.keys(activityGroups).length > 0" class="activityGroups">
89-
<div v-for="(value, key) in activityGroups" v-bind:key="key" class="activityGroup" v-bind:class="{required: value.required}">
89+
<div v-for="(value, key) in activityGroups" v-bind:key="key" class="activityGroup" v-bind:class="{required: value.required, activityGroupSingleRow: value.activities.length >= 10}">
9090
<h3 class="activityTitle">
9191
<span v-html="value.title"></span>
9292
<span v-if="value.required" class="requiredicon">*</span>
@@ -579,6 +579,10 @@ button {
579579
box-sizing: border-box;
580580
}
581581
582+
.activityGroupSingleRow {
583+
flex: auto;
584+
}
585+
582586
.settingslist {
583587
display:grid;
584588
justify-content:center;

web/css/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)