Skip to content

Commit

Permalink
UBER-851: fix titles in ListView (#3678)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
  • Loading branch information
SasLord authored Sep 11, 2023
1 parent 1246b5a commit 466dcdf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 18 deletions.
2 changes: 0 additions & 2 deletions packages/presentation/src/components/NavLink.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@
<style lang="scss">
span,
a {
display: flex;
align-items: center;
min-width: 0;
font-weight: inherit;
Expand Down
1 change: 0 additions & 1 deletion packages/theme/styles/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,6 @@
border-radius: 1.625rem;
transition: flex-shrink 0.25s cubic-bezier(0.38, 0.01, 0.33, 1) 0s;

&:not(:empty) { min-width: 7.5rem; }
&:hover {
flex-shrink: .5;
min-width: initial;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
{#each value.parents as parentInfo}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<span
class="name overflow-label cursor-pointer"
class="parent-label overflow-label cursor-pointer"
title={parentInfo.parentTitle}
on:click={() => handleIssueEditorOpened(parentInfo)}
>
Expand All @@ -46,7 +46,7 @@

<style lang="scss">
.root {
display: flex;
display: inline-flex;
margin-left: 0;
min-width: 0;
Expand All @@ -56,7 +56,9 @@
color: var(--theme-dark-color);
}
.name {
.parent-label {
flex-shrink: 5;
&:hover {
color: var(--theme-caption-color);
text-decoration: underline;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,13 @@

{#if value}
<span
class="name overflow-label select-text"
class="presenter-label select-text"
class:with-margin={shouldUseMargin}
class:list={kind === 'list'}
style:max-width={maxWidth}
title={value.title}
>
<DocNavLink
object={value}
{disabled}
{onClick}
component={tracker.component.EditIssue}
inline
shrink={1}
colorInherit
>
<DocNavLink object={value} {onClick} component={tracker.component.EditIssue} shrink={1} colorInherit>
{value.title}
</DocNavLink>
</span>
Expand All @@ -55,7 +47,10 @@
{/if}

<style lang="scss">
.name {
.presenter-label {
overflow: hidden;
display: inline-flex;
align-items: center;
flex-shrink: 1;
min-width: 1rem;
Expand Down
2 changes: 1 addition & 1 deletion tests/sanity/tests/tracker.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export async function checkIssueFromList (page: Page, issueName: string): Promis
}

export async function openIssue (page: Page, name: string): Promise<void> {
await page.click(`.antiList__row:has-text("${name}") .name a`, {
await page.click(`.antiList__row:has-text("${name}") .presenter-label a`, {
timeout: 15000
})
}

0 comments on commit 466dcdf

Please sign in to comment.