Skip to content

Conversation

@kevinmessiaen
Copy link
Member

Description

image image

Type of Change

  • 📚 Examples / docs / tutorials / dependencies update
  • 🔧 Bug fix (non-breaking change which fixes an issue)
  • 🥂 Improvement (non-breaking change which improves an existing feature)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🔐 Security fix
@linear
Copy link

linear bot commented Jun 13, 2023

GSK-1271 Test UI: status message gets squeezed, spacing uneven

Screenshot 2023-06-07 at 14.11.31.png

  • squeezed text
  • random dots

flex-wrap: wrap might help 🪄

This affects also (and in particular) the "comparison" view because the layout is half width.

@kevinmessiaen kevinmessiaen changed the title Feature/gsk 1271 test UI status message gets squeezed spacing uneven Jun 13, 2023
…message-gets-squeezed-spacing-uneven' into feature/gsk-1271-test-ui-status-message-gets-squeezed-spacing-uneven
@kevinmessiaen kevinmessiaen marked this pull request as ready for review June 13, 2023 11:26
Comment on lines 19 to 24
<span v-if='successRatio.failed > 0'>{{ plurialize('test', successRatio.failed) }} failed</span>
<span v-if='successRatio.failed > 0 && successRatio.passed > 0'>, </span>
<span v-if='successRatio.passed > 0'>{{ plurialize('test', successRatio.passed) }} passed</span>
<span v-if='successRatio.failed > 0 || successRatio.passed > 0'>. </span>
Executed
<span class='ml-2'>{{ timeSince(execution.executionDate) }}</span>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should add some spaces here.

Suggested change
<span v-if='successRatio.failed > 0'>{{ plurialize('test', successRatio.failed) }} failed</span>
<span v-if='successRatio.failed > 0 && successRatio.passed > 0'>, </span>
<span v-if='successRatio.passed > 0'>{{ plurialize('test', successRatio.passed) }} passed</span>
<span v-if='successRatio.failed > 0 || successRatio.passed > 0'>. </span>
Executed
<span class='ml-2'>{{ timeSince(execution.executionDate) }}</span>
<span v-if='successRatio.failed > 0'>&nbsp;{{ plurialize('test', successRatio.failed) }} failed</span>
<span v-if='successRatio.failed > 0 && successRatio.passed > 0'>, </span>
<span v-if='successRatio.passed > 0'>&nbsp;{{ plurialize('test', successRatio.passed) }} passed</span>
<span v-if='successRatio.failed > 0 || successRatio.passed > 0'>. </span>
&nbsp;Executed
<span>&nbsp;{{ timeSince(execution.executionDate) }}</span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, either spaces or padding between spans should look nice

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of space I removed the parent flex that was not required, the space are not needed anymore

Copy link
Contributor

@andreybavt andreybavt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as Henrique mentioned let's add more spacing about spans

@sonarqubecloud
Copy link

@andreybavt andreybavt merged commit 3d5c807 into main Jun 19, 2023
@kevinmessiaen kevinmessiaen deleted the feature/gsk-1271-test-ui-status-message-gets-squeezed-spacing-uneven branch June 23, 2023 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants