Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix overflowing commit messages #528

Merged
merged 3 commits into from
Nov 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions web/src/components/build-feed/BuildFeedItem.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<div v-if="build" class="flex text-gray-600 dark:text-gray-500">
<div v-if="build" class="flex text-gray-600 dark:text-gray-500 w-full">
<BuildStatusIcon :build="build" class="flex items-center" />
<div class="flex flex-col ml-4">
<div class="flex flex-col ml-4 min-w-0">
<span class="underline">{{ build.owner }} / {{ build.name }}</span>
<span>{{ message }}</span>
<span class="whitespace-nowrap overflow-hidden overflow-ellipsis">{{ message }}</span>
<div class="flex flex-col mt-2">
<div class="flex space-x-2 items-center">
<Icon name="duration" />
Expand Down
14 changes: 8 additions & 6 deletions web/src/components/repo/build/BuildItem.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<ListItem v-if="build" clickable class="p-0">
<ListItem v-if="build" clickable class="p-0 w-full">
<div class="flex items-center mr-4">
<div
class="min-h-full w-3"
Expand All @@ -17,14 +17,16 @@
</div>
</div>

<div class="flex w-full py-2 px-4">
<div class="flex items-center"><img class="w-8" :src="build.author_avatar" /></div>
<div class="flex py-2 px-4 flex-grow min-w-0">
<div class="flex items-center flex-shrink-0"><img class="w-8" :src="build.author_avatar" /></div>

<div class="ml-4 flex items-center mx-4">
<span class="text-gray-600 dark:text-gray-500">{{ message }}</span>
<div class="ml-4 flex items-center mx-4 min-w-0">
<span class="text-gray-600 dark:text-gray-500 whitespace-nowrap overflow-hidden overflow-ellipsis">{{
message
}}</span>
</div>

<div class="flex ml-auto text-gray-500 py-2">
<div class="flex ml-auto text-gray-500 py-2 flex-shrink-0">
<div class="flex flex-col space-y-2 w-42">
<div class="flex space-x-2 items-center">
<Icon v-if="build.event === 'pull_request'" name="pull_request" />
Expand Down
14 changes: 8 additions & 6 deletions web/src/views/repo/RepoBuild.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
<template>
<template v-if="build && repo">
<FluidContainer class="flex border-b mb-4 items-center dark:border-gray-600">
<IconButton icon="back" @click="$router.back()" />
<h1 class="text-xl ml-2 text-gray-500">Pipeline #{{ buildId }} - {{ message }}</h1>
<BuildStatusIcon :build="build" class="flex ml-auto" />
<FluidContainer class="flex border-b mb-4 items-center dark:border-gray-600 min-w-0">
<IconButton icon="back" class="flex-shrink-0" @click="$router.back()" />
<h1 class="text-xl ml-2 text-gray-500 whitespace-nowrap overflow-hidden overflow-ellipsis">
Pipeline #{{ buildId }} - {{ message }}
</h1>
<BuildStatusIcon :build="build" class="flex flex-shrink-0 ml-auto" />
<template v-if="repoPermissions.push">
<Button
v-if="build.status === 'pending' || build.status === 'running'"
class="ml-4"
class="ml-4 flex-shrink-0"
text="Cancel"
:is-loading="isCancelingBuild"
@click="cancelBuild"
/>
<Button
v-else-if="build.status !== 'blocked' && build.status !== 'declined'"
class="ml-4"
class="ml-4 flex-shrink-0"
text="Restart"
:is-loading="isRestartingBuild"
@click="restartBuild"
Expand Down