Commit b2dc319f authored by Andrew Fontaine's avatar Andrew Fontaine

Move Environment Name Cell Width to Computed

A little cleaner, a little easier to read.
parent 6b8fe36c
...@@ -552,6 +552,9 @@ export default { ...@@ -552,6 +552,9 @@ export default {
{ 'gl-display-none gl-md-display-block': !this.upcomingDeployment }, { 'gl-display-none gl-md-display-block': !this.upcomingDeployment },
]; ];
}, },
tableNameSpacingClass() {
return this.isFolder ? 'section-100' : this.tableData.name.spacing;
},
}, },
methods: { methods: {
...@@ -588,7 +591,7 @@ export default { ...@@ -588,7 +591,7 @@ export default {
> >
<div <div
class="table-section section-wrap text-truncate" class="table-section section-wrap text-truncate"
:class="[isFolder ? 'section-100' : tableData.name.spacing]" :class="tableNameSpacingClass"
role="gridcell" role="gridcell"
> >
<div v-if="!isFolder" class="table-mobile-header" role="rowheader"> <div v-if="!isFolder" class="table-mobile-header" role="rowheader">
......
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