Commit 9faefa99 authored by Filipa Lacerda's avatar Filipa Lacerda

Fixes CSS leaks for job log

Renames existing classes in the job log
refactor
parent 0cddd4df
...@@ -9,5 +9,7 @@ export default { ...@@ -9,5 +9,7 @@ export default {
}; };
</script> </script>
<template> <template>
<div class="duration rounded align-self-start px-2 ml-2 flex-shrink-0">{{ duration }}</div> <div class="log-duration-badge rounded align-self-start px-2 ml-2 flex-shrink-0">
{{ duration }}
</div>
</template> </template>
...@@ -19,7 +19,7 @@ export default { ...@@ -19,7 +19,7 @@ export default {
</script> </script>
<template> <template>
<div class="line"> <div class="log-line">
<line-number :line-number="line.lineNumber" :path="path" /> <line-number :line-number="line.lineNumber" :path="path" />
<span v-for="(content, i) in line.content" :key="i" :class="content.style">{{ <span v-for="(content, i) in line.content" :key="i" :class="content.style">{{
content.text content.text
......
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
<template> <template>
<div <div
class="line collapsible-line d-flex justify-content-between" class="log-line collapsible-line d-flex justify-content-between"
role="button" role="button"
@click="handleOnClick" @click="handleOnClick"
> >
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
background-color: $builds-trace-bg; background-color: $builds-trace-bg;
} }
.line { .log-line {
padding: 1px $gl-padding 1px $job-log-line-padding; padding: 1px $gl-padding 1px $job-log-line-padding;
} }
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
} }
} }
.duration { .log-duration-badge {
background: $gl-gray-400; background: $gl-gray-400;
} }
......
---
title: Fix CSS leak in job log
merge_request:
author:
type: fixed
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