Skip to content

Commit

Permalink
More layout improvements for mobile.
Browse files Browse the repository at this point in the history
  • Loading branch information
edwh committed Aug 28, 2023
1 parent d7f9e95 commit 6c9e7a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
5 changes: 1 addition & 4 deletions resources/js/components/CollapsibleSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<slot name="title" />
</div>
<div v-if="count" :class="{
'd-inline' : true,
'd-md-none' : !alwaysShowCount,
'text-muted' : true,
'd-flex' : true,
Expand All @@ -24,9 +23,7 @@
<span v-if="countBadge">
&nbsp;<b-badge variant="primary" pill>{{ count }}</b-badge>
</span>
<span v-else>
&nbsp;<span :class="countClass">({{ count }})</span>
</span>
<span v-else :class="countClass + ' ml-1'">({{ count }})</span>
</div>
<slot name="title-icon" />
</div>
Expand Down
4 changes: 2 additions & 2 deletions resources/js/components/EventDeviceSummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
</b-td>
<b-td v-if="powered" class="d-td-cell d-md-none">
<div>
<span class="pl-0 pl-md-2 pr-2 clickme edit" @click="editDevice">
<span class="pl-0 pl-md-2 pr-4 clickme edit" @click="editDevice">
<b-img class="icon edit" src="/icons/edit_ico_green.svg" />
</span>
<span class="pl-2 pr-2 clickme" @click="deleteConfirm">
<span class="pr-2 clickme" @click="deleteConfirm">
<b-img class="icon" src="/icons/delete_ico_red.svg" />
</span>
</div>
Expand Down
12 changes: 6 additions & 6 deletions resources/js/components/EventDevices.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@
</div>
</template>
<template slot="title-right">
<div class="d-flex text-brand small">
<div class="ml-2 mr-1 pt-1 lower small align-self-center">
<div class="d-flex text-brand small text-center">
<div class="ml-2 mr-1 pt-1 lower small">
<b-img src="/images/trash_brand.svg" class="icon" />
{{ Math.round(stats.waste_powered) }}
</div>
<div class="ml-1 mr-1 lower pt-1 small align-self-center">
<div class="ml-1 mr-1 lower pt-1 small">
<b-img src="/images/co2_brand.svg" class="icon" />
{{ Math.round(stats.co2_powered) }}
</div>
Expand All @@ -100,12 +100,12 @@
</div>
</template>
<template slot="title-right">
<div class="d-flex text-brand small">
<div class="ml-2 mr-1 pt-1 lower small align-self-center">
<div class="d-flex text-brand small text-center">
<div class="ml-2 mr-1 pt-1 lower small">
<b-img src="/images/trash_brand.svg" class="icon" />
{{ Math.round(stats.waste_unpowered) }}
</div>
<div class="ml-1 mr-1 lower pt-1 small align-self-center">
<div class="ml-1 mr-1 lower pt-1 small">
<b-img src="/images/co2_brand.svg" class="icon" />
{{ Math.round(stats.co2_unpowered) }}
</div>
Expand Down

0 comments on commit 6c9e7a9

Please sign in to comment.