Skip to content

Add icon to go to the file associated to a room#1387

Merged
nickvergessen merged 3 commits into
masterfrom
add-icon-to-go-to-the-file-associated-to-a-room
Dec 13, 2018
Merged

Add icon to go to the file associated to a room#1387
nickvergessen merged 3 commits into
masterfrom
add-icon-to-go-to-the-file-associated-to-a-room

Conversation

@danxuliu

Copy link
Copy Markdown
Member

As the rooms associated to a file are also shown in the regular Talk UI now an icon is shown next to the room name to easily go to the file when clicking on it.

room-name-file-icon

For consistency with the server and between the room list and the new icon the icon in the room list for rooms associated to a file is now the text icon instead of the file icon.

room-list-file-icon

@nextcloud/designers

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
If a room is associated to a file now an icon is shown to the right of
the room name; when that icon is clicked the Files app is opened in a
new tab and focused on the file.

The "Go to the file" hint is shown using the tooltip plugin instead of
the link title for consistency with other buttons in the UI, and because
it is automatically shown when the icon is focused while traversing the
UI elements with the tab key.

The icon has a clickable area of 44x44px; due to how the properties for
h2 elements are defined in the server some margin juggling is needed to
vertically align the icon with the room name header.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
In the server, ".icon-file" is set to the "text" icon instead of to the
"file" icon. For consistency with the server and between the room list
(which uses ".icon-file-white") and the icon to go to the file (which
uses ".icon-file") now ".icon-file-white" uses the "text" icon too.

Note, however, that the icon for shared files that do not have a preview
is still the "file" icon, as in that case it should reflect the file
contents and using a text icon for other types of files could be
misleading.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu

Copy link
Copy Markdown
Member Author

/backport to stable15

@Ivansss Ivansss left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested and works 👍

@nickvergessen

Copy link
Copy Markdown
Member

to be removed in 16 again :(

@nickvergessen
nickvergessen merged commit 8bb5304 into master Dec 13, 2018
@nickvergessen
nickvergessen deleted the add-icon-to-go-to-the-file-associated-to-a-room branch December 13, 2018 12:55
@backportbot-nextcloud

Copy link
Copy Markdown

backport to stable15 in #1398

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.

4 participants