Commit 48ddf84a authored by Natalia Tepluhina's avatar Natalia Tepluhina Committed by Jose Ivan Vargas

Resolve "Design comments: Text wrapping behavior"

parent ae81cd5d
......@@ -102,12 +102,12 @@ export default {
</a>
<span class="note-headline-light note-headline-meta">
<span class="system-note-message"> <slot></slot> </span>
<template v-if="note.createdAt">
<span class="system-note-separator"></span>
<a class="note-timestamp system-note-separator" :href="`#note_${noteAnchorId}`">
<a
class="note-timestamp system-note-separator gl-display-block gl-mb-2"
:href="`#note_${noteAnchorId}`"
>
<time-ago-tooltip :time="note.createdAt" tooltip-placement="bottom" />
</a>
</template>
</span>
</div>
<div class="gl-display-flex">
......
---
title: 'Resolve Design comments: Text wrapping behavior'
merge_request: 40359
author:
type: fixed
......@@ -46,7 +46,16 @@ exports[`Design note component should match the snapshot 1`] = `
class="system-note-message"
/>
<!---->
<a
class="note-timestamp system-note-separator gl-display-block gl-mb-2"
href="#note_123"
>
<time-ago-tooltip-stub
cssclass=""
time="2019-07-26T15:02:20Z"
tooltipplacement="bottom"
/>
</a>
</span>
</div>
......
......@@ -15,6 +15,7 @@ const note = {
userPermissions: {
adminNote: false,
},
createdAt: '2019-07-26T15:02:20Z',
};
HTMLElement.prototype.scrollIntoView = scrollIntoViewMock;
......@@ -79,10 +80,7 @@ describe('Design note component', () => {
it('should render a time ago tooltip if note has createdAt property', () => {
createComponent({
note: {
...note,
createdAt: '2019-07-26T15:02:20Z',
},
note,
});
expect(wrapper.find(TimeAgoTooltip).exists()).toBe(true);
......
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