Commit 18704a47 authored by David O'Regan's avatar David O'Regan Committed by Natalia Tepluhina

Update alert details mobile display

parent b0dc27be
...@@ -133,30 +133,34 @@ export default { ...@@ -133,30 +133,34 @@ export default {
<div v-if="loading"><gl-loading-icon size="lg" class="gl-mt-5" /></div> <div v-if="loading"><gl-loading-icon size="lg" class="gl-mt-5" /></div>
<div v-if="alert" class="alert-management-details gl-relative"> <div v-if="alert" class="alert-management-details gl-relative">
<div <div
class="gl-display-flex gl-justify-content-space-between gl-align-items-center gl-px-1 gl-py-6 gl-border-b-1 gl-border-b-gray-200 gl-border-b-solid" class="gl-display-flex gl-justify-content-space-between gl-align-items-baseline gl-px-1 py-3 py-md-4 gl-border-b-1 gl-border-b-gray-200 gl-border-b-solid flex-column flex-sm-row"
>
<div
data-testid="alert-header"
class="gl-display-flex gl-align-items-center gl-justify-content-center"
> >
<div data-testid="alert-header">
<div <div
class="gl-display-inline-flex gl-align-items-center gl-justify-content-space-between" class="gl-display-inline-flex gl-align-items-center gl-justify-content-space-between"
> >
<gl-icon <gl-icon
class="gl-mr-3" class="gl-mr-3 align-middle"
:size="12" :size="12"
:name="`severity-${alert.severity.toLowerCase()}`" :name="`severity-${alert.severity.toLowerCase()}`"
:class="`icon-${alert.severity.toLowerCase()}`" :class="`icon-${alert.severity.toLowerCase()}`"
/> />
<strong>{{ $options.severityLabels[alert.severity] }}</strong> <strong>{{ $options.severityLabels[alert.severity] }}</strong>
</div> </div>
<span class="gl-shim-mx-2">&bull;</span> <span class="mx-2">&bull;</span>
<gl-sprintf :message="reportedAtMessage"> <gl-sprintf :message="reportedAtMessage">
<template #when> <template #when>
<time-ago-tooltip :time="alert.createdAt" /> <time-ago-tooltip :time="alert.createdAt" class="gl-ml-3" />
</template> </template>
<template #tool>{{ alert.monitoringTool }}</template> <template #tool>{{ alert.monitoringTool }}</template>
</gl-sprintf> </gl-sprintf>
</div> </div>
<gl-button <gl-button
v-if="glFeatures.createIssueFromAlertEnabled" v-if="glFeatures.createIssueFromAlertEnabled"
class="gl-mt-3 mt-sm-0 align-self-center align-self-sm-baseline"
data-testid="createIssueBtn" data-testid="createIssueBtn"
:href="newIssuePath" :href="newIssuePath"
category="primary" category="primary"
......
...@@ -97,6 +97,13 @@ ...@@ -97,6 +97,13 @@
} }
} }
@include media-breakpoint-down(xs) {
// TODO Remove in favour of a details CSS page
[data-testid='createIssueBtn'] {
width: 100%;
}
}
.gl-tab-nav-item { .gl-tab-nav-item {
color: $gl-gray-600; color: $gl-gray-600;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment