Commit d4d00ba8 authored by Eulyeon Ko's avatar Eulyeon Ko

Change timeline height uniformly to 32px

Add changelog entry

Remove test for unused css class
parent afca7045
......@@ -38,7 +38,6 @@ export default {
v-for="timeframeItem in timeframe"
:key="timeframeItem.id"
class="milestone-timeline-cell gl-display-table-cell gl-relative border-right border-bottom"
:class="{ 'milestone-timeline-cell-empty': !milestonesExpanded }"
data-qa-selector="milestone_timeline_cell"
>
<current-day-indicator :preset-type="presetType" :timeframe-item="timeframeItem" />
......
......@@ -115,13 +115,9 @@ export default {
</script>
<template>
<div :style="sectionContainerStyles" class="milestones-list-section gl-display-table">
<div
:style="sectionContainerStyles"
class="milestones-list-section gl-display-table"
:class="{ 'milestones-list-section-collapsed': !milestonesExpanded }"
>
<div
class="milestones-list-title gl-display-table-cell border-bottom gl-vertical-align-top position-sticky gl-p-3"
class="milestones-list-title gl-display-table-cell border-bottom gl-vertical-align-top position-sticky gl-px-3"
>
<div class="gl-display-flex gl-align-items-center">
<span
......
$header-item-height: 60px;
$item-height: 50px;
$milestones-collapsed-height: 38px;
$details-cell-width: 320px;
$timeline-cell-height: 32px;
$timeline-cell-width: 180px;
$border-style: 1px solid $border-gray-normal;
$roadmap-gradient-dark-gray: rgba(0, 0, 0, 0.15);
......@@ -409,21 +409,14 @@ html.group-epics-roadmap-html {
}
.milestones-list-section {
&.milestones-list-section-collapsed {
height: $milestones-collapsed-height;
}
.milestones-list-items {
.milestone-timeline-cell {
height: $timeline-cell-height;
width: $timeline-cell-width;
}
.milestone-timeline-cell-empty {
height: $milestones-collapsed-height;
}
.timeline-bar-wrapper {
height: 32px;
height: $timeline-cell-height;
color: $gray-700;
}
......@@ -546,6 +539,7 @@ html.group-epics-roadmap-html {
.milestones-list-title {
height: 100%;
left: 0;
padding-top: 5px;
width: $details-cell-width;
font-size: $code-font-size;
background-color: $white;
......
---
title: Fix milestones list height to a correct value
merge_request: 35394
author:
type: fixed
......@@ -30,24 +30,17 @@ describe('MilestoneTimelineComponent', () => {
});
};
const findMilestoneTimelineCell = () => wrapper.find('.milestone-timeline-cell');
const findMilestoneItem = () => wrapper.find(MilestoneItem);
describe.each`
props | hasCellEmpty | hasMilestoneItem
${{}} | ${false} | ${true}
${{ milestonesExpanded: false }} | ${true} | ${false}
`('with $props', ({ props, hasCellEmpty, hasMilestoneItem }) => {
props | hasMilestoneItem
${{}} | ${true}
${{ milestonesExpanded: false }} | ${false}
`('with $props', ({ props, hasMilestoneItem }) => {
beforeEach(() => {
createWrapper(props);
});
it(`renders timeline cell with empty class = ${hasCellEmpty}`, () => {
expect(findMilestoneTimelineCell().classes('milestone-timeline-cell-empty')).toBe(
hasCellEmpty,
);
});
it(`renders MilestoneItem component = ${hasMilestoneItem}`, () => {
expect(findMilestoneItem().exists()).toBe(hasMilestoneItem);
});
......
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