Граф коммитов

595 Коммитов

Автор SHA1 Сообщение Дата
Joas Schilling 8ff2ff04ba
Fix missing left border of contacts popover
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-12 14:43:59 +02:00
Ivan Sein bf8a1de056
Merge pull request #1969 from nextcloud/update-videoview-on-ice-disconnected-failed-with-mcu
Update VideoView on ICE disconnected/failed with MCU
2019-07-11 16:36:07 +02:00
Daniel Calviño Sánchez ac7c311efe Reduce opacity of videos for peers that are not connected
Until now only the opacity of the avatar was reduced when the peer was
not connected. However, if the video was being shown the avatar was
hidden, so if there was an issue with the connection to the other peer
it was not reflected in the VideoView.

Note that the loading icon should be shown too in the video for long
disconnections or failures, but ":after" CSS pseudo classes (which are
used by the loading icon) do not work with video elements, so for now
only the opacity is reduced.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-07-09 13:29:31 +02:00
Daniel Calviño Sánchez ec8570e355 Reduce opacity of avatars for peers that are not connected
Until now the opacity of the avatar was reduced when the peer was
created until it got connected for the first time. Now the opacity of
the avatar is reduced whenever the peer is not connected. In practice,
the difference is that now the opacity is changed too when there are
issues with the connection to the other peer.

Note that the issues were already signaled using the loading icon, but
only after a long disconnection; now the opacity is reduced as soon as
there is a disconnection, which provides quicker feedback of the issue
while keeping the previous behaviour (as the loading icon is still shown
in a long disconnection).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-07-09 13:27:15 +02:00
Daniel Calviño Sánchez c28b57c1ed Add trailing " ↗" to external links in chat messages
This is purely a visual hint, so it is added using the ":after"
pseudo class of CSS.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-07-08 12:29:58 +02:00
Joas Schilling af91ab082b
Merge pull request #1941 from nextcloud/bugfix/1765/sidebar-icons-are-over-the-scrollbar
Prevent sidebar and fullscreen icons from overlapping with the scrollbar (issue 1765)
2019-07-03 11:13:26 +02:00
Joas Schilling fa9454a053
Restrict the CSS rules for the participant list to that list
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-02 17:28:59 +02:00
Marco Ambrosini 338c388e18 removed unnecessary padding
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2019-07-02 16:12:17 +02:00
Marco Ambrosini d5695d3f92 fixed the partially visible popovermenu on last user in the right sidebar
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2019-07-02 16:09:46 +02:00
Marco Ambrosini 05968824fc
Prevent sidebar and fullscreen icons from overlapping with the scrollbar
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2019-07-02 14:23:29 +02:00
Joas Schilling a02a48aa80
Fix minor issues and recompile handlebar
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-02 14:06:06 +02:00
Marco Ambrosini e94805d8a4
added a caption and improved the radio buttons descriptions
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2019-07-02 13:54:46 +02:00
Daniel Calviño Sánchez de2039ee5f Fix message dates in public share authentication page
The chat messages are expected to have the full width of its content
row, except for some space used for the date. However, as chat messages
are left padded that padding must be included too in the width;
otherwise there could be no room for the date.

This is only a problem in the public share authentication page, as apps
use by default "box-sizing: border-box" in all its elements.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-06-11 18:19:55 +02:00
Sascha Wiswedel bf28b19c6e Make rename button always visible
Rename buttons for guest participants and rooms should always be visible
(at least with opacity) to make their very existence more obvious.

Before they were always hidden and shown with full opacity when the
cursor was on the label wrapper, even if it was possible to interact
with the button only when the cursor was on it. Now, as the buttons are
always visible with a low opacity, the full opacity is set only when the
cursor is on the button itself and thus when it can be interacted with.

Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
2019-05-23 14:14:43 +02:00
Joas Schilling a54b5b688c
Better grouping of chat messages
* timestamp is shown after 5 messages or 30 seconds
* author is shown after 20 messages or 1 hour

Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-05-13 13:45:25 +02:00
Daniel Calviño Sánchez 84f48f29ec Fix vertical position of confirm icon in authenticate page
The server explicitly sets the height of confirm icons inside password
inputs, which overrides the height set in Talk for submit inputs in the
authenticate page. Therefore, the height set by the server needs to be
overriden to honour the height set in Talk (which matches the height of
the password input in the authenticate page).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-05-07 10:05:31 +02:00
Daniel Calviño Sánchez 2867624a9c Fix fullscreen structure in IE11
Due to how Internet Explorer 11 sorts CSS rules based on their selector
and how the "#app-content" left margin is set in the server it is
necessary to set the ":fullscreen" rule as important to override the one
from the server, which is sorted above it (unlike in the rest of
browsers).

Besides that, the top space added to the sidebar when IE is used needs
to be removed in fullscreen mode, as in that case there is no header.
The sidebar height also needs to be explicitly set to 100% due to the
lack of support for "unset" in Internet Explorer 11.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-04-16 17:44:45 +02:00
Daniel Calviño Sánchez 687d685c28 Fix sidebar in IE11
The sidebar top position in Talk is set to 0. However, the server sets
the position of the sidebar as fixed when IE is used, so in that case it
needs to be pulled down to not overlap with the header.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-04-16 17:44:45 +02:00
Daniel Calviño Sánchez 0964539c27 Adjust room name input to default height for inputs from server
In Nextcloud 16 the default height for input elements, as well as the
confirm icons inside them, is 34px. This caused the room name input to
change its height from 44px to 42px, so it is no longer needed to pull
it up 2px to prevent moving the items below when it is shown. In a
similar way, it also caused the confirm icon to change its height from
42px to 34px; it was misplaced down 1px, so now it is positioned 4px
from the top (instead of 5px to keep the same position as before).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-04-11 17:09:00 +02:00
Daniel Calviño Sánchez 6e66853512 Remove empty space when the "Add" button is not shown in the sidebar
The "Add" button is shown only for logged in users, so it is not shown
in guest pages. However, when the chat view is shown in the sidebar in a
guest page there was an empty space where the "Add" button would have
been shown for a logged in user. Now the message input stretchs to use
that empty space.

Note that this is only applied when the chat view is in the sidebar;
when the chat view is in the main view the "Add" button is added in the
padding area used to frame the chat view, so in that case the empty
space should be kept.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-04-10 12:06:37 +02:00
Joas Schilling 9ae63abc09
Merge pull request #1697 from nextcloud/fix-misplaced-chat-view-in-public-share-auth-page
Fix misplaced chat view in public share auth page
2019-04-10 09:15:18 +02:00
Daniel Calviño Sánchez 2c78011e58 Fix misplaced chat view in public share auth page
When the current participant is a logged in user the "Add" button is
shown in the chat view, and due to some arcane CSS magic that button
caused the chat view to be moved to the left (instead of simply
appearing to the right of the message input, wherever that be). The same
arcane CSS magic causes everything to look fine when using the same
approach as in the sidebar of the regular Talk UI, that is, applying a
"margin-right" to the form to make room for the "Add" button, so that
margin is now applied in the public share auth page when needed (that
is, when the user is logged in).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-04-09 17:56:06 +02:00
Daniel Calviño Sánchez 7b5c0933c1 Fix links style in Talk sidebar in public share auth page
"guest.css" overrides the default style of links set in "style.scss"
(core), which causes links in the public share auth page to be white and
with a stronger weight. Due to this, the rules from "style.scss" need to
be restored for links in the Talk sidebar to get the proper appearance.

Note that, unlike in other restored rules, in this case it is not enough
to use "#talk-sidebar" as the main selector; "#body-login #talk-sidebar"
needs to be used in this case.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-04-09 17:54:02 +02:00
Daniel Calviño Sánchez 838089d489 Fix cursor on selected tab header
The pointer cursor should be used on clickable elements, but clicking on
a selected tab header has no effect, so now the default cursor is used
instead.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-04-05 12:41:24 +02:00
Daniel Calviño Sánchez 56b156bd4c Fix ICE failed indicator icon not forced to white in call
Icons paired with the "force-icon-white-in-call" CSS class need to be
explicitly coloured in white; otherwise they are shown with the default
black colour.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-04-04 09:41:20 +02:00
Joas Schilling 3a57f5f2e7
Merge pull request #1672 from nextcloud/bugfix/noid/add-background-color-to-unread-messages-counter
Add background color to unread messages counter.
2019-04-03 16:59:35 +02:00
Ivan Sein 6f80ad4fdf Add background color to unread messages counter.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2019-04-03 16:09:39 +02:00
Joas Schilling 8e1c523c51
Add "copy link" option to the conversation list dropdown
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-04-03 14:02:07 +02:00
Joas Schilling f3bf14bb55
Merge pull request #1656 from nextcloud/bugfix/noid/command-interface-finish
Add a description to the commands admin settings
2019-04-02 08:31:33 +02:00
Joas Schilling 79246e1d59
Start changelog implementation
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-04-01 16:00:13 +02:00
Joas Schilling 041b4cf99e
Add a description to the commands admin settings
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-29 15:51:10 +01:00
Joas Schilling 37474c5325
Disable the chat input and the call button for read-only conversations
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-25 15:17:20 +01:00
Joas Schilling ab1bc74fe1
Allow to disable the warning
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-21 16:28:53 +01:00
Ivan Sein 8b4708a077
Merge pull request #1633 from nextcloud/base-publicshareauth-on-embedded-instead-of-on-application
Base "PublicShareAuth" on "Embedded" instead of on "Application"
2019-03-19 10:59:02 +01:00
Daniel Calviño Sánchez e928527ff4 Hide and show elements by using the "hidden" CSS class
For consistency with the video element, other elements in VideoView are
now hidden and shown using the "hidden" CSS class.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-15 14:08:08 +01:00
John Molakvoæ (skjnldsv) 8b50047a5b
cleanup, rename and fix signaling
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-03-13 12:46:02 +01:00
John Molakvoæ (skjnldsv) 312c36e982
Commands ui
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-03-08 14:32:19 +01:00
Daniel Calviño Sánchez 0ae54754b0 Set call related CSS classes in the call container of PublicShareAuth
For legacy reasons the "incall" CSS class, which is used to hide and
show the empty content view and the call container as needed, and the
"screensharing" CSS class, which is used to adjust the call UI when
there are shared screens, were set in the "#talk-sidebar" element of
PublicShareAuth. For consistency with the embedded Talk UI now the
classes are set in the "#call-container" instead.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-05 13:59:28 +01:00
Joas Schilling fa29ecae13
Merge pull request #1570 from nextcloud/bugfix/1561/multiline-insert-from-websites-in-chrome
Allow multiline text insertion in chrome
2019-02-25 15:22:18 +01:00
Daniel Calviño Sánchez 614bad4481 Adjust vertical position of icons due to "inline-block" message in form
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-21 11:03:48 +01:00
Joas Schilling d7866a7cc5
Allow multiline text insertion in chrome
The div needs to be inline-block, so Chrome/Chromium correctly insert
div-ed multi-line-text with new lines.
Otherwise they are just chained together on posting.

See https://stackoverflow.com/a/24689420
See https://github.com/nextcloud/spreed/issues/1561

Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-21 09:52:55 +01:00
Ivan Sein e3531beb60 Fix css for call mentions.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2019-02-20 19:12:24 +01:00
Joas Schilling 58f0bd6d2f
Use call ROS object
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-20 14:44:18 +01:00
Joas Schilling 64ac6950f7
Allow to mention everyone in the conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-20 14:44:18 +01:00
Joas Schilling 480bba7d53
Merge pull request #1508 from anstue/master
Own video is too big, setting it to 22%
2019-02-19 14:22:07 +01:00
Joas Schilling b552e4731e
Merge pull request #1510 from nextcloud/fix-editable-text-label-for-guest-names
Fix editable text label for guest names
2019-02-06 10:08:05 +01:00
Daniel Calviño Sánchez 3c78f92f2c Fix guest name input field and submit button in public share auth page
"guest.css" overrides the default style of inputs set in "input.scss",
which causes all inputs in the public share auth page to look like the
main password input. Due to this, the rules from "input.scss" need to be
restored for inputs in the Talk sidebar to get the proper appearance.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-04 14:18:42 +01:00
Daniel Calviño Sánchez c2ac08ddda Fix edit guest name button in public share auth page
"guest.css" sets ".button" elements to inline-block display, but the
edit button, which is a "span", is expected to be displayed as inline to
get the proper size.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-04 14:11:11 +01:00
Daniel Calviño Sánchez 80bcebba51 Fix edit guest name button in public chats
When the editable text label for room names was fixed the rules were
added for all editable text labels, which broke the editable text label
for guest names. Those rules are now applied only to room names, which
implicitly fixes guest names.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-04 14:10:33 +01:00
Anton Stuetz cb7781974a Own video is too big, setting it to 22%
Signed-off-by: Anton Stuetz <disposable@ti-zero.com>
2019-02-01 17:11:44 +01:00
Daniel Calviño Sánchez 3d1a84e2e5 Fix close button of Files app sidebar during calls in dark mode
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 14:07:12 +01:00
Daniel Calviño Sánchez 21d40f4a41 Add back shadows for icons in calls
When ".icon-white" was replaced by ".force-icon-white-in-call" the
server rule that sets shadows to ".icon-white.icon-shadow" elements no
longer applied to icons in calls. Due to this it is necessary to
explicitly set the shadows for ".force-icon-white-in-call.icon-shadow"
elements to ensure that they are visible on bright video backgrounds.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 14:07:12 +01:00
Daniel Calviño Sánchez 15110279a2 Fix navigation toggle for calls in dark mode
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 14:07:12 +01:00
Daniel Calviño Sánchez d4abecfc81 Use CSS rules to force white icons also in the Talk sidebar
The "incall" CSS class is currently set in "#app-content",
"#talk-sidebar" and "#call-container", depending on whether the call
happens in the main Talk UI, in the public share authentication page or
in the Files app.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 14:07:09 +01:00
Daniel Calviño Sánchez 918950cb40 Move CSS rules for icons in media buttons to "video.scss"
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 14:06:21 +01:00
Daniel Calviño Sánchez 4d251abbc8 Remove unneeded selector
"#hideVideo", "#mute" and "#screensharing-button" elements do not appear
in the sidebar.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 12:23:37 +01:00
Joas Schilling 005342492c
Merge pull request #1485 from nextcloud/bugfix/noid/black-call-icons-in-dark-mode
Fix icons for incall scene when dark mode is enabled
2019-01-30 11:09:25 +01:00
Ivan Sein 6d68ecc4f7 Differentiate between video on/off icons.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2019-01-30 10:47:37 +01:00
Joas Schilling 339b1dfc05
Fix icons for .incall scene when dark mode is enabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-29 14:48:10 +01:00
Joas Schilling 713828afde Reduce the number of loaded scripts
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-29 13:30:39 +01:00
Joas Schilling 436126c21e
Make the seperator visible
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-28 15:36:14 +01:00
Daniel Calviño Sánchez 1aabd39ce3 Fix submit button not hidden in public share auth page
While a message is being sent the submit button in the chat view is
hidden by setting the "hidden" CSS class to it. However, in "guest.css"
an explicit "display" property is set for submit buttons; this rule is
more specific than the generic rule for ".hidden" elements, and thus
overrides it, causing the submit button to be shown even when the
"hidden" CSS class is set. Therefore, an explicit rule is needed to set
"display: none" for hidden submit buttons.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-01-28 11:10:03 +01:00
Daniel Calviño Sánchez 219a6eb446 Fix vertical position of submit button in public share auth page
The submit button in the chat view is positioned using its "bottom"
property to align it with the bottom of the new message form even when
there are several lines and the form grows vertically.
"publicshareauth.css" (core) sets the "top" property of submit buttons,
which causes the submit button in the chat view to be aligned to the top
of the new message form, and thus needs to be overriden.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-01-28 11:09:11 +01:00
Joas Schilling 0826d7c28b
Fix autocomplete on darktheme
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-24 21:04:35 +01:00
Joas Schilling 56bb099eef
Always use white icons on the avatar-alike-placeholders
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-23 13:51:32 +01:00
Joas Schilling 95e69a322e
Invert the non-avatar icons so they are visible on dark theme mode
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-17 13:29:01 +01:00
Jan-Christoph Borchardt f36c34d75e
Remove non-standard background from counter, also emphasizes personal notifications
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2019-01-17 11:49:37 +01:00
Jan-Christoph Borchardt 2bade2e206
Dark theme: Fix tab header text color
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2019-01-17 11:44:57 +01:00
Jan-Christoph Borchardt aa2bfb9ac3
Dark theme: Fix border color in app navigation
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2019-01-17 11:42:59 +01:00
Jan-Christoph Borchardt 10cb92d67a
Fix Chat sidebar in Files for Dark theme
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2019-01-17 11:16:24 +01:00
Ivan Sein 1f4d92afd3
Merge pull request #1419 from nextcloud/bugfix/1417/favorite-icon
Fix favorite icon.
2018-12-18 15:57:20 +01:00
Ivan Sein 55593fd474 Fix favorite icon.
Limit larger icons only to those shown in place of an avatar.

Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2018-12-18 15:46:44 +01:00
Joas Schilling f07e90d9c8
Merge pull request #1405 from nextcloud/fix-room-name-input-width
Fix room name input width
2018-12-14 11:17:07 +01:00
Daniel Calviño Sánchez 7ba5f806bc Fix room name input width
After moving the room name into a flex container the room name input no
longer expanded to fill the whole width of the sidebar.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-14 07:51:07 +01:00
Daniel Calviño Sánchez aaedc71762 Increase opacity of submit button when the chat message input is focused
The rules for the opacity of the submit button for the chat message
input were not merged with the generalized ones due to "styles.scss" not
being included everywhere that "chatview.scss" is included (for example,
in the Talk sidebar for the Files app).

The rule explicitly excludes a hovered or focused submit button, as due
to specifity in this specific case the rule for the focused input
overrides the rule for hovered or focused submit buttons (even if in the
generalized ones it is not necessary to explicitly exclude those
states).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-14 06:48:37 +01:00
Daniel Calviño Sánchez 173e06508c Fix opacity of submit button for password in authentication page
The authentication page uses pure CSS instead of the SCSS styles, so the
rules were adjusted as needed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-14 06:48:37 +01:00
Daniel Calviño Sánchez b0cde8906e Fix cursor in menu item to set the room password
In the server the pointer cursor is set for the whole menu item. In the
pop up to set the room password only the button in the password field is
clickable, so the pointer cursor should not be used for the whole menu
item.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-14 06:48:37 +01:00
Daniel Calviño Sánchez ceae4646c7 Fix opacity of submit button for password
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-14 06:48:37 +01:00
Daniel Calviño Sánchez 9ebc9d6f82 Highlight submit button only if it is enabled
The button is highlighted to convey that it can be interacted with, so
it should not be done if the button is disabled.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-14 06:48:37 +01:00
Daniel Calviño Sánchez 76e26c2633 Generalize CSS rules for submit buttons in text inputs
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-14 06:48:37 +01:00
Daniel Calviño Sánchez 1518e7d9c1 Fix opacity of submit button for guest name
The guest name now behaves like the room name regarding the opacity of
its submit button.

Both the room name and the guest name are editable text labels, so the
CSS rules were moved from the room name to the editable text label.
However, although the guest name uses the default server rules for the
input and the submit button the room name does not (they are adjusted to
better fit a header); the rules set for the editable text label are
based on the default server rules, and the room name inherits the rules
for the editable text label customizing them as needed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-14 06:48:34 +01:00
Daniel Calviño Sánchez 4a104f3497 Reorder rules to give more priority to specialized ones
As ".room-name" and ".guest-name" elements are also
".editable-text-label" elements the rules for the later, which should be
more generic, are moved above the rules for the specific elements.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-14 06:45:30 +01:00
Daniel Calviño Sánchez acacc5abf8 Fix vertical position of submit button in room name
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-14 06:38:09 +01:00
Daniel Calviño Sánchez 8f195af87b Increase opacity when the input field for the submit button is focused
When the input field for the room name is focused pressing enter sets
the room name without having to explicitly click on the submit button.
To hint this behaviour now the opacity of the submit button is slightly
increased when its input field is focused.

Due to the specifity of the CSS rules, the one for the focused input
needs to be defined before the other to get the full opacity of the
button when it is hovered and the input is also focused.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-14 06:38:09 +01:00
Daniel Calviño Sánchez 1efd9e21e4 Fix opacity of submit button for room name
For consistency with the button to send a new chat message the submit
button is now by default at a opacity of .3 and is shown in full opacity
only when hovered/focused/active.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-14 06:38:08 +01:00
Daniel Calviño Sánchez e43c12e779
Show placeholder while loading a new room in the Files app
When the "Chat" tab is selected for a different file a new room is
loaded. However, as first it has to be checked if the Talk sidebar is
supported for the file, which may require a query to the server, and
then the messages for the new room need to be fetched some time can pass
between selecting the tab and rendering the messages for the new room.

Due to this now a "UI not ready" placeholder is shown in the "Chat" tab
while a new room is being loaded, which prevents the messages of the old
room from being shown.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-13 16:25:45 +01:00
Daniel Calviño Sánchez 8a3a514c41
Rename placeholder to a more generic name
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-13 16:25:45 +01:00
Joas Schilling c3ed3ea4b3
Merge pull request #1389 from nextcloud/adjust-tab-header-icons-to-changes-in-server
Adjust tab header icons to changes in server
2018-12-13 15:20:12 +01:00
Joas Schilling 8bb53047ea
Merge pull request #1387 from nextcloud/add-icon-to-go-to-the-file-associated-to-a-room
Add icon to go to the file associated to a room
2018-12-13 13:55:50 +01:00
Daniel Calviño Sánchez 235b43c934 Adjust tab header icons to changes in server
In Nextcloud 15 icons were added to the tab headers in the sidebar; due
to the shared CSS rules this broke the position of icons in the tab
headers of Talk.

For consistency with the server, the tab header icons were not fixed to
their previous position (to the left of the label), but to the same
position used in the sidebar of the server (above the label).

To do this the icon was simply extracted from the link to use the same
markup as the server.

However, there are still some differences between the tab headers in
Talk and in the server; in Talk the whole tab header is highlighted when
hovered, so now that the icon is in a separate element it should use the
same opacity rules, specific to Talk, as its link.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-13 13:01:48 +01:00
Daniel Calviño Sánchez ae24fa9b85 Fix position of input for room name
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-13 08:29:15 +01:00
Daniel Calviño Sánchez 15e02eb80f Fix position of edit button for room name
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-13 08:28:45 +01:00
Daniel Calviño Sánchez 27893b3e6c Use "text" icon for ".icon-file-white"
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>
2018-12-13 08:17:42 +01:00
Daniel Calviño Sánchez 79632c1562 Add icon to go to the file associated to a room
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>
2018-12-13 08:11:22 +01:00
Daniel Calviño Sánchez 020202c8c5 Show working icon in call button while joining or leaving a call
To provide a stronger feedback that the action is still going on now a
working/loading icon is shown in the call button while joining or
leaving a call.

In the Files app the call button width depends on its text (in the
regular Talk UI it depends on the sidebar width), so the padding was
increased to always make room for the icon, even when hidden, to prevent
a sudden increase of the width when the icon is shown.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-11 11:23:07 +01:00
Daniel Calviño Sánchez c75dc7caa9
Use special icons for rooms associated to objects
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-10 12:13:40 +01:00
Daniel Calviño Sánchez a8908ab90a
Generalize CSS rules for room icons
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-10 12:13:15 +01:00
Daniel Calviño Sánchez 98f57a4c89
Remove dead code
Swapping the "public-room" and "private-room" CSS classes comes from the
time in which the share link was shown in the room list. However, since
the share link was moved to the sidebar the "public-room" and
"private-room" CSS classes are not set anywhere, so their switching code
as well as their CSS rules can be removed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-10 12:13:15 +01:00
Daniel Calviño Sánchez b641a281ff Show "Chat" tab also when a file is not shared
Before, the "Chat" tab was shown only when the file was shared. This
made the feature hard to discover if you did not know about it.
Moreover, after sharing the file the details view had to be closed and
opened again, which was cumbersome, as there were no events to listen to
and the visibility of tabs can not be updated once shown either (at
least, without some hacks).

Due to all this now the "Chat" tab is always shown for files (although
not for folders); if the file is already shared the previous UI (call
button and chat view) is shown, and if it is not a message to inform the
user that the file needs to be shared is shown instead. This is updated
every time the tab is opened again, so after sharing the file going back
to the "Chat" tab will show the call button and the chat view.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-06 16:03:16 +01:00
Daniel Calviño Sánchez e213c6de93 Show message in the sidebar while waiting for others to join the call
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-06 13:08:53 +01:00
Daniel Calviño Sánchez 7437d90687 Move call button from main file details to chat tab
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-06 13:08:53 +01:00
Daniel Calviño Sánchez b6819e22a5 Add local video and media controls
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-06 13:08:53 +01:00
Daniel Calviño Sánchez fa2def677c Add support for video calls to the Talk sidebar in Files app
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-06 13:05:27 +01:00
Daniel Calviño Sánchez a4e0a6e2e8 Remove inline styles for screen sharing menu items
The items in "app-navigation-entry-menu" lists were forced to be
displayed as blocks with an "!important" rule, so inline rules were used
to hide some items in the screensharing menu.

However, forcing the items in "app-navigation-entry-menus" lists to be
displayed as blocks is no longer needed; that class is only used in the
room list menus and in the screensharing menu, and both work fine
without it. Moreover, the server provides rules to hide items in those
menus by adding the "hidden" class, so that approach is used now instead
of the inline styles.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-05 19:56:01 +01:00
Daniel Calviño Sánchez ac0ceed2d6 Extract CSS styles for videos
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-05 19:12:03 +01:00
Joas Schilling a6d5c6f629
Merge pull request #1327 from nextcloud/firefox-screensharing-options
Fix wording and icons for screensharing options
2018-12-04 13:55:09 +01:00
Joas Schilling 73fc7f4545
Merge pull request #1323 from nextcloud/add-support-for-talk-sidebar-in-files-app
Add support for Talk sidebar in Files app
2018-12-04 13:50:39 +01:00
Daniel Calviño Sánchez 432e1b0aa4 Show Talk sidebar in Files app
This commit introduces a DetailTabView plugin to show a chat view in the
sidebar of the Files app. The tab makes possible to chat in a Talk room
associated to the current file; due to this, the tab is visible only on
files that can be associated to a room, that is, files shared with the
current user or by the current user to another user (as a user, group,
circle...).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-03 15:48:41 +01:00
Ivan Sein f0b94d8b82 Change text and icon for screensharing options in Firefox.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2018-12-03 10:48:15 +01:00
Jan-Christoph Borchardt cf6c99f121 Improve design of emptycontent view
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-12-03 01:22:22 +01:00
Daniel Calviño Sánchez 8396fa51e5 Move "comments.scss" to "chatview.scss"
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-28 17:46:21 +01:00
Daniel Calviño Sánchez 41d28ddf19 Add CSS class to items in the autocomplete list for mentions
The CSS rules specific to the autocomplete list for mentions in the chat
view were applied to any other autocomplete list. In the main Talk UI
this is not a problem, as that is the only autocomplete list, but it
could be when using the Talk chat view in other components, like the
Files app.

The autocomplete list is created as a child of the body element itself,
so to limit the CSS rules only to the chat view it is not possible to
just prepend "#chatView" to the rules. Instead, now each item has a CSS
class (hopefully :-) ) unique to the chat view.

Unfortunately, it does not seem to be possible to ensure that the rules
defined in "autocomplete.scss" will not collide/override rules defined
in other apps, as customizing the CSS classes in ".atwho-view" so the
rules are applied only when it belongs to the chat view does not seem to
be possible (except, maybe, with some hacks).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-28 15:25:47 +01:00
Daniel Calviño Sánchez ba798aba86 Remove leftover CSS rules from the original import from the Comments app
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-28 15:25:46 +01:00
Daniel Calviño Sánchez 4e10934e3c Rename "CommentsTabView" to "ChatView"
"CommentsTabView" is a legacy name from the original import of the code
from the Comments app; besides being a better fit, "ChatView" also
ensures that the CSS rules will not conflict with those from the
Comments app when the Talk UI is used in the Files app.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-28 15:25:46 +01:00
Joas Schilling dfab6a7603
Merge pull request #1313 from nextcloud/bugfix/noid/fix-alignment-of-avatars-in-mention-box-2
Fix avatar position in mention box.
2018-11-28 15:21:59 +01:00
Ivan Sein dafea88aeb Fix avatar position in mention box.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2018-11-28 14:40:33 +01:00
Daniel Calviño Sánchez 7d8a80279e Fix appearance of message list in public share authentication page
"guest.scss" in server sets the "width" and "margin-top" properties of
".wrapper" elements to position the main content of the public share
authentication page. However, as the selector used in the rule is too
broad it is also applied to the internal wrapper of the virtual list, so
the properties need to be reset in that case.

Besides that, the padding of the message list is ignored when using the
virtual list, so that padding needs to be applied through the "left" and
"right" properties of the internal wrapper of the virtual list.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-27 11:23:18 +01:00
Joas Schilling 957dc442ec
Also use the method for the no-password icon
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-21 17:11:40 +01:00
Joas Schilling f9a7975212
Fix the name of the variable for the black image
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-21 17:09:06 +01:00
Joas Schilling 902ec4a68f
Merge pull request #1271 from nextcloud/improve-performance-of-the-list-of-chat-messages
Improve performance of the list of chat messages
2018-11-20 13:18:48 +01:00
Daniel Calviño Sánchez e96d9d19d9 Use VirtualList for the message list in the chat view
The virtual list requires that its internal wrappers use an absolute
position. Due to that absolute position the padding of the container
does not affect the wrappers, so the desired padding must be applied
through its left and right position.

As the virtual list keeps only a subset of its elements in the DOM the
":first-child" pseudo-selector no longer refers to the actual first
child element, but to the first one currently in the DOM; it would be
necessary to apply the CSS rules using a specific CSS class set only in
the desired element. However, as the first comment always includes the
date separator, which already has a top margin, the top padding is not
really needed in the first comment, so it was simply removed.

Moving the message list between the main view and the sidebar changes
its size, and thus it is necessary to reload the virtual list; when the
virtual list is reloaded it is ensured that the last visible element
will still be visible after the reload, so the chat view no longer needs
to explicitly handle that.

In a similar way, the message list also needs to be reloaded when the
window is resized, or when the chat view is in the main view and the
sidebar is opened or closed, as those actions change the size of the
main view.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-20 12:18:15 +01:00
Joas Schilling 63ace18c25
Fix avatar position in mention box
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-14 16:58:18 +01:00
Daniel Calviño Sánchez 7bce81b9f1 Fix vertical position of contacts menu on author row
The absolute position of the contacts menu is relative to the author
row, so it has to be pushed down to not overlap the author name and
avatar.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-09 18:32:18 +01:00
Joas Schilling 6275900baa
Add notification level options in the drop down menu for now
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-10-08 15:26:45 +02:00
Daniel Calviño Sánchez 63799b2a8a Show a working icon while waiting for the server response
When an item was selected in the participant menu the menu was closed,
but there was no feedback to the user to let her know that the operation
was still in progress. Now after the menu is closed the button that
toggles it is replaced by a working icon; the button is shown again when
the operation finishes, either shown explicitly if there was an error or
automatically once the view for the participant is rendered again if it
was successful.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-09-28 12:01:09 +02:00
Joas Schilling bc29961a79
Allow to invite email addresses
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-09-27 16:21:21 +02:00
Joas Schilling 17f7ebe4e4
Merge pull request #1177 from nextcloud/test-turn-settings
Add button to test TURN settings.
2018-09-21 15:57:22 +02:00
Joachim Bauch 9599cec195
Change icon with test results instead of showing message.
Signed-off-by: Joachim Bauch <bauch@struktur.de>
2018-09-21 14:53:38 +02:00
Daniel Calviño Sánchez b5b9273b42 Fix position of contacts menu shown on mentions
The server does not provide default CSS rules for the contacts menu, as
its position depends on the element on which it is shown.

The contacts menu is now positioned to show the tip of the arrow
horizontally aligned with the center of the avatar, and with the top of
the menu slightly below the bottom border of the mention.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-09-15 20:01:35 +02:00
Joas Schilling efcee84d4f
Merge pull request #1163 from nextcloud/show-preview-of-shared-files-in-system-messages
Show preview of shared files in system messages
2018-09-06 11:10:35 +02:00
Daniel Calviño Sánchez 90d6381c38 Open the file when the preview is clicked
Before the file could be opened only when clicking on the name; now it
can be opened when clicking on the preview itself too.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-09-06 10:50:43 +02:00
Daniel Calviño Sánchez 469ef55bc1 Show preview of shared files in messages
Previews are shown as an image with the file name below it. If the
preview fails to load the "file" icon is shown instead; this is always
the case for guest users, as they have no access to previews.

The parser assumes that rich object messages with a file only contain a
"{{file}}" object and nothing else; the parser then adds a placeholder
element for the preview which will be replaced by the actual preview by
the chat view.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-09-06 10:50:43 +02:00
Daniel Calviño Sánchez 5023132226
Show user avatar in mentions in the list of messages
Mentions in the list of messages now show the user avatar instead of an
"@" before the user name. The markup and CSS are based on those used in
the Comments app, although with some small differences (like using the
"mention-user" CSS class) to keep the same visual appearance as before
for "mentions" in system messages (which are not highlighted when they
refer to the current user, and do not show the user name in bold in any
case).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-09-06 10:49:27 +02:00
Daniel Calviño Sánchez 30719ad039
Remove selector from CSS rule
The selector does not match any element (it will do in the following
commits, but the rule would not be needed either), so it can be removed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-09-06 10:49:26 +02:00
Daniel Calviño Sánchez 5646683744
Replace SCSS variables with CSS variables
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-09-06 10:49:26 +02:00
Daniel Calviño Sánchez 83e14d1e9f
Rename CSS class from "current-user" to "currentUser"
This makes the name consistent with the one used in the Comments app.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-09-06 10:49:26 +02:00
Joachim Bauch 9c18c15d05
Add button to test TURN settings.
This implements #679.

Signed-off-by: Joachim Bauch <bauch@struktur.de>
2018-09-05 13:01:41 +02:00
Joas Schilling 7cb2775c02
Add a grey background around the icons
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-08-26 23:52:46 +02:00
Joas Schilling 501299e848
Make the avatar opaque aswell
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-08-26 23:42:18 +02:00
Joas Schilling b2f87c30f8
Force the font color correctly
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-08-26 18:58:38 +02:00
Joas Schilling 523eed0de8
Fix contrast problems
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-08-26 18:11:04 +02:00
Daniel Calviño Sánchez 1fc1253306 Fix "Add" button when chat is shown in sidebar
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-08-25 00:24:04 +02:00
Daniel Calviño Sánchez 4671c0d663 Add button to share files from Talk UI
The button, which is shown next to the area to write new messages, shows
a file picker and then shares the chosen file with the room.

Note that currently new files can not be uploaded through the file
picker; only those already in the Nextcloud account of the user can be
chosen.

Also, currently only registered users can share files with a room, so
the button is hidden for guests.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-08-24 23:49:49 +02:00
Joas Schilling 799d629b8c
Make current-user mentions blue again
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-08-21 14:54:52 +02:00
Joas Schilling 98491bdf3e
Merge pull request #1123 from nextcloud/add-support-for-video-calls-when-requesting-the-password-for-a-share
Add support for video calls when requesting the password for a share
2018-08-08 14:53:20 +02:00
Joas Schilling 9723b25456
Merge pull request #1122 from nextcloud/bugfix/1064/favorite-fixes
Fixes for favorite conversations
2018-08-08 14:29:01 +02:00
Daniel Calviño Sánchez 0ddf012738
Show empty content message when not in a call
The empty content message informs the user when the app is waiting for
the media permissions and then when it is waiting for the sharer to join
the call. Thus it is now shown above the chat view, in the place that
will be occupied by the call container once the call starts.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-08-08 14:17:41 +02:00
Daniel Calviño Sánchez 31039b8337
Prevent shadows of videos from leaking on other elements
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-08-08 14:17:41 +02:00
Daniel Calviño Sánchez c113242e6f
Add proper layout for screensharing
When a screen is shared it takes the upper area of the call container,
and the videos are shown below it in a 200px high row, just like in the
normal Talk UI.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-08-08 14:17:40 +02:00
Daniel Calviño Sánchez e8410d562e
Add basic support for video calls
When a password is requested now the guest automatically joins the call,
and once the sharer joins the call too a video call view appears in the
Talk sidebar.

Although it is not currently shown, the empty content message for guest
users was set, as it is expected to be set by some event handlers.

In a similar way the "#screens" element was also added, but there is no
support yet for screensharing and thus the element is kept always
hidden.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-08-08 14:17:40 +02:00