Fix application card widths

This commit is contained in:
Oliver Davies 2018-12-23 22:42:45 +00:00
parent 308f312ffe
commit 6c257fafc1
2 changed files with 23 additions and 15 deletions

View file

@ -1,24 +1,26 @@
<template>
<div class="w-full md:w-1/3 lg:w-1/4 mx-6 mb-6 bg-white p-4 border border-grey rounded">
<div class="flex flex-col h-full justify-between">
<div class="flex justify-between mb-12">
<div>
<div>
<div class="mb-6 bg-white p-4 border border-grey rounded">
<div class="flex flex-col h-full justify-between">
<div class="flex justify-between mb-12">
<div>
<router-link :to="{name: 'environments', params: {id: id}}" class="text-blue-dark no-underline hover:underline focus:underline"><h2 class="mb-1">{{ application.name }}</h2></router-link>
<div>
<router-link :to="{name: 'environments', params: {id: id}}" class="text-blue-dark no-underline hover:underline focus:underline"><h2 class="mb-1">{{ application.name }}</h2></router-link>
</div>
<div>
<a href="#0" class="text-blue-dark no-underline hover:underline focus:underline">{{ application.environments['prod'].url }}</a>
</div>
</div>
<div>
<a href="#0" class="text-blue-dark no-underline hover:underline focus:underline">{{ application.environments['prod'].url }}</a>
<button type="button" @click="starred = !starred" class="focus:outline-none">
<svg class="h-6 w-6 text-orange fill-current" role="presentation"><use :xlink:href="`/img/icons.symbol.svg#state__${starred ? 'starred' : 'unstarred'}`"></use></svg>
</button>
</div>
</div>
<div>
<button type="button" @click="starred = !starred" class="focus:outline-none">
<svg class="h-6 w-6 text-orange fill-current" role="presentation"><use :xlink:href="`/img/icons.symbol.svg#state__${starred ? 'starred' : 'unstarred'}`"></use></svg>
</button>
</div>
<application-tags :type="application.type" :level="application.level"></application-tags>
</div>
<application-tags :type="application.type" :level="application.level"></application-tags>
</div>
</div>
</template>

View file

@ -37,8 +37,14 @@
</div>
</div>
<div class="flex flex-wrap -mx-6">
<application-card v-for="application in applications" :id="application.id" :application="application" :key="application.id"></application-card>
<div class="flex flex-wrap -mx-3 w-full">
<application-card
v-for="application in applications"
:id="application.id"
:application="application"
:key="application.id"
class="px-3 w-full lg:w-1/3"
></application-card>
</div>
</div>