|
1 | 1 | <template>
|
2 | 2 | <div v-if="pipeline" class="flex flex-col pt-10 md:pt-0">
|
3 |
| - <div |
4 |
| - class="fixed top-0 left-0 w-full md:hidden flex px-4 py-2 bg-wp-background-100 dark:bg-wp-background-200 text-wp-text-100" |
5 |
| - @click="$emit('update:step-id', null)" |
6 |
| - > |
7 |
| - <span>{{ step?.name }}</span> |
8 |
| - <Icon name="close" class="ml-auto" /> |
9 |
| - </div> |
10 |
| - |
11 | 3 | <div
|
12 | 4 | class="flex flex-grow flex-col code-box shadow !p-0 !rounded-none md:m-2 md:mt-0 !md:rounded-md overflow-hidden"
|
13 | 5 | @mouseover="showActions = true"
|
14 | 6 | @mouseleave="showActions = false"
|
15 | 7 | >
|
16 |
| - <div class="flex flex-row items-center w-full bg-wp-code-100 px-4 py-2"> |
17 |
| - <span class="text-base font-bold text-wp-code-text-alt-100">{{ $t('repo.pipeline.log_title') }}</span> |
| 8 | + <div class="<md:fixed <md:top-0 <md:left-0 flex flex-row items-center w-full bg-wp-code-100 px-4 py-2"> |
| 9 | + <span class="text-base font-bold text-wp-code-text-alt-100"> |
| 10 | + <span class="<md:hidden">{{ $t('repo.pipeline.log_title') }}</span> |
| 11 | + <span class="md:hidden">{{ step?.name }}</span> |
| 12 | + </span> |
| 13 | + |
18 | 14 | <div class="flex flex-row items-center ml-auto gap-x-2">
|
19 | 15 | <IconButton
|
20 | 16 | v-if="step?.end_time !== undefined"
|
|
33 | 29 | :icon="autoScroll ? 'auto-scroll' : 'auto-scroll-off'"
|
34 | 30 | @click="autoScroll = !autoScroll"
|
35 | 31 | />
|
| 32 | + <IconButton |
| 33 | + class="!hover:bg-white !hover:bg-opacity-10 !md:hidden" |
| 34 | + icon="close" |
| 35 | + @click="$emit('update:step-id', null)" |
| 36 | + /> |
36 | 37 | </div>
|
37 | 38 | </div>
|
38 | 39 |
|
@@ -105,7 +106,6 @@ import { computed, inject, nextTick, onMounted, Ref, ref, toRef, watch } from 'v
|
105 | 106 | import { useI18n } from 'vue-i18n';
|
106 | 107 | import { useRoute } from 'vue-router';
|
107 | 108 |
|
108 |
| -import Icon from '~/components/atomic/Icon.vue'; |
109 | 109 | import IconButton from '~/components/atomic/IconButton.vue';
|
110 | 110 | import PipelineStatusIcon from '~/components/repo/pipeline/PipelineStatusIcon.vue';
|
111 | 111 | import useApiClient from '~/compositions/useApiClient';
|
|
0 commit comments