Skip to content

Conversation

@ishantgupta777
Copy link
Collaborator

@ishantgupta777 ishantgupta777 commented Apr 18, 2020

Signed-off-by: Ishant ishantgupta777@gmail.com

Fixed issue and resolves #1679 of the tooltip.

  • Resolves: #
  • Target version: master

Signed-off-by: Ishant <ishantgupta777@gmail.com>
@juliusknorr
Copy link
Member

Ideally the ActionsButton component from https://github.com/nextcloud/nextcloud-vue should just show a v-tooltip for single actions, but I'm fine with this as a temporary workaround.

</div>
<div class="board-list-avatars-cell">
<Avatar :user="board.owner.uid" class="board-list-avatar" />
<Avatar :user="board.owner.uid" :title="board.owner.displayname" class="board-list-avatar" />
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 the tooltip here is coming from the parent element and the Avatar has a proper v-tooltip usage. My suggestion would be to just set an empty title attribute on the parent div (.board-list-avatars-cell)

<button v-if="board.acl.length === 0"
class="icon-shared"
style="opacity: 0.3"
:title="'Share'"
Copy link
Member

Choose a reason for hiding this comment

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

Please make those translatable.

Copy link
Collaborator Author

@ishantgupta777 ishantgupta777 Apr 18, 2020

Choose a reason for hiding this comment

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

@juliushaertl I have done the changes, please have a look.

@PackElend
Copy link

Ideally the ActionsButton component from https://github.com/nextcloud/nextcloud-vue should just show a v-tooltip for single actions

@ishantgupta777 can you do so?

@ishantgupta777
Copy link
Collaborator Author

Ideally the ActionsButton component from https://github.com/nextcloud/nextcloud-vue should just show a v-tooltip for single actions

@ishantgupta777 can you do so?

Sure sir, I am doing the changes.

Signed-off-by: Ishant <ishantgupta777@gmail.com>
Comment on lines 35 to 36
<div class="board-list-avatars-cell" :title="''">
<Avatar :user="board.owner.uid" :title="board.owner.displayname" class="board-list-avatar" />
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<div class="board-list-avatars-cell" :title="''">
<Avatar :user="board.owner.uid" :title="board.owner.displayname" class="board-list-avatar" />
<div class="board-list-avatars-cell" title="">
<Avatar :user="board.owner.uid" :display-name="board.owner.displayname" class="board-list-avatar" />

<Avatar v-for="user in limitedAcl"
:key="user.id"
:user="user.participant.uid"
:title="user.participant.displayname"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
:title="user.participant.displayname"
:display-name="user.participant.displayname"

<button v-if="board.acl.length === 0"
class="icon-shared"
style="opacity: 0.3"
:title="t('deck', 'Share')"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
:title="t('deck', 'Share')"
v-tooltip="t('deck', 'Share')"

Copy link
Member

Choose a reason for hiding this comment

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

Same for the next ones ;)

Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

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

See inline suggestions

@ishantgupta777
Copy link
Collaborator Author

See inline suggestions

Done. Please have a look.

@juliusknorr juliusknorr merged commit a445ed6 into nextcloud:master Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1.0.0-alpha1: tooltips: unexpected oder not shown

3 participants