Fix approval on mobile (#1320)

Closes #1096
This commit is contained in:
qwerty287 2022-10-23 00:30:25 +02:00 committed by GitHub
parent b7b1b94ab4
commit 486c8473fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,11 @@
<template>
<div class="flex flex-col flex-grow">
<div class="flex w-full min-h-0 flex-grow">
<PipelineProcList v-model:selected-proc-id="selectedProcId" :pipeline="pipeline" />
<PipelineProcList
v-model:selected-proc-id="selectedProcId"
:class="{ 'hidden md:flex': pipeline.status === 'blocked' }"
:pipeline="pipeline"
/>
<div class="flex flex-grow relative">
<div v-if="error" class="flex flex-col p-4">
@ -9,7 +13,7 @@
<span class="text-red-400">{{ error }}</span>
</div>
<div v-else-if="pipeline.status === 'blocked'" class="flex flex-col flex-grow justify-center items-center">
<div v-else-if="pipeline.status === 'blocked'" class="flex flex-col flex-grow justify-center items-center p-2">
<Icon name="status-blocked" class="w-32 h-32 text-color" />
<p class="text-xl text-color">{{ $t('repo.pipeline.protected.awaits') }}</p>
<div v-if="repoPermissions.push" class="flex mt-2 space-x-4">