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

1559 Коммитов

Автор SHA1 Сообщение Дата
Joas Schilling 350d108b8b
Merge pull request #568 from nextcloud/tab-headers
Improve tab header styles, center headings, flexbox
2018-01-10 12:53:22 +01:00
Jan-Christoph Borchardt ca8622c2bf Fix tab headers being too small in Chrome
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-10 12:46:35 +01:00
Jan-Christoph Borchardt 93e0a82f2e Improve tab header styles, center headings, flexbox
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-10 11:41:00 +01:00
Joas Schilling b867d7a3fd
Merge pull request #564 from nextcloud/improve-automatic-scrolling-behaviour-when-new-messages-arrive
Improve automatic scrolling behaviour when new messages arrive
2018-01-10 11:28:56 +01:00
Daniel Calviño Sánchez 3c0587f31c Improve automatic scrolling behaviour when new messages arrive
When the chat messages are shown from newest to oldest and a new message
arrives the list is automatically scrolled to keep the current visible
messages at the same place, except if the list was at the top, in which
case no scrolling is made and the new message appears.

When the chat messages are shown from oldest to newest and a new message
arrives the list is automatically scrolled to show the new message,
except if the list was not at the bottom in which case no scrolling is
made and the current visible messages are kept at the same place.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-10 11:15:13 +01:00
Joas Schilling 2c7ef423cf
Merge pull request #560 from nextcloud/comment-input-margin
Reduce margin-bottom of comment input
2018-01-10 10:17:21 +01:00
Ivan Sein 3c1a4da137
Merge pull request #561 from nextcloud/reverse-chat-layout
Reverse chat layout
2018-01-10 09:56:02 +01:00
Daniel Calviño Sánchez d6dddb0c2d Fix chat height in the main view of public pages
The header element contains the header div; as the header div uses a
fixed position the header element has no height, so an explicit height
was set for it to prevent "#app-content-wrapper" from overlapping with
the header element. However, as "#app-content-wrapper" has a 100% height
that caused the "#app-content-wrapper" to be moved 45px to the bottom,
and thus the chat view was partially cropped at the bottom.

When the chat view messages are shown from newest to oldest this causes
the first messages to be out of view, but when they are shown from
oldest to newest with the new message input at the bottom then the input
is partially out of view.

Now instead of giving the header an explicit height a "padding-top" is
set for the "#app-content-wrapper"; this prevents the contents from
being cropped while also preventing them from overlapping the header.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-10 08:51:31 +01:00
Daniel Calviño Sánchez 8951066a66 Stretch tab contents to available space also when there is extra space
When the tab contents were larger than the available space they were
limited to that space. Now, if the available space is larger than the
needed height the tab contents is also increased to fill it.

This ensures that the chat view will always stretch to the available
space, which in turn ensures that the "New message" input will be always
shown at the bottom of the sidebar like done in the main view (which was
not the case before when there were no messages or only a few).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-10 08:51:31 +01:00
Daniel Calviño Sánchez 57a65b24f5 Reverse chat layout
Before chat messages were shown from newest to oldest, with the new
message input above the list of messages. Now the layout can be chosen,
either the previous one or the reversed one, from oldest to newest with
the new message input below the list of messages.

The new reversed layout is the default one, and probably the old one
will not be used anywhere in the future... but for the time being I kept
the old one too just in case.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-10 08:50:44 +01:00
Jan-Christoph Borchardt 1c18f61d64 Reduce margin-bottom of comment input
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-10 08:43:20 +01:00
Nextcloud bot f5cefa9e33
[tx-robot] updated from transifex 2018-01-10 01:32:15 +00:00
Ivan Sein 505f2d55c0
Merge pull request #555 from nextcloud/fix-the-update-of-the-editabletextlabel-input
Fix the update of the EditableTextLabel input
2018-01-10 01:28:23 +01:00
Ivan Sein cb403ccdf2
Merge pull request #549 from nextcloud/room-info-title
Improve title for 1-to-1 calls.
2018-01-10 01:17:08 +01:00
Ivan Sein 290b00bf68
Merge pull request #550 from nextcloud/limit-scroll-bar-in-sidebar-to-chatview
Limit scroll bar in sidebar to chat view
2018-01-10 01:03:50 +01:00
Ivan Sein c7ad1ad78f
Merge pull request #553 from nextcloud/design-more
More design fixes
2018-01-10 01:01:00 +01:00
Ivan Sein 2a19f95968 Add 'video-disabled' class to mute button when video is disabled.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2018-01-10 00:57:41 +01:00
Daniel Calviño Sánchez bccc62c0ed Show scroll bar for the list of participants in the sidebar
Limiting the scroll bar in the sidebar to the list of chat messages
causes the scroll bar to be removed from the whole sidebar in other tabs
too. Therefore, the scroll bars must be explicitly enabled in the other
tab contents that need them.

The list of participants grows dynamically, so a vertical scroll bar
should be enabled on it to be able to view all the participants in a
long list.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-10 00:39:43 +01:00
Daniel Calviño Sánchez bd8d30d725 Fix tooltips when chat view is shown in the sidebar
The positioning context (the element that an absolute element is
relative to) of the tooltips shown for the date of messages was the
author row, and thus they were visible only were the author row would be
visible. The author row would be clipped outside the list of messages
(due to its "overflow-y" CSS property), so the tooltip shown for the
date of the newest message was clipped at the top of the list of
messages.

Now the tooltips are added to the chat view itself, so "#app-content"
becomes their positioning context and thus are no longer clipped by the
list of messages.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-10 00:39:43 +01:00
Daniel Calviño Sánchez 91ba9cf308 Move message list scroll bar to the sidebar right edge
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-10 00:39:43 +01:00
Daniel Calviño Sánchez 0b546c200f Add extra CSS class to tab content wrapper with the id of the tab
In CSS it is not currently possible to select an element based on
whether it has certain child or not, nor select the parent element of
another one. In certain cases it may be necessary to use a special style
for the tab content wrapper element, for example to remove the padding
from the wrapper and left the tab content element itself to handle it.
To support that now the tab content wrapper has the "tab-{tabId}" CSS
class in addition to the "tab" CSS class.

Another option would have been to make possible to specify the class
name to use when a tab was added so the same class could be used by the
wrapper when showing different tabs. However this seem like an uncommon
use case, and there should not be a lot of tabs anyway, so the current
approach would not require a lot of ".tab-{tabId1}", ".tab-{tabId2}",
".tab-{tabId3}"... selectors for the same rules in the CSS files anyway.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-10 00:39:43 +01:00
Daniel Calviño Sánchez a0f0d9c274 Remove "scroll-container" CSS class from sidebar
The class was copied from the markup of the server sidebar, but it is
not used anywhere and its name is misleading now that the scroll bar is
shown on the tabs that need it.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-10 00:39:43 +01:00
Daniel Calviño Sánchez 6ed8be360f Limit scroll bar in sidebar to the message list of the chat view
Except when almost empty, the message list of the chat view is taller
than its available vertical space in the sidebar. Due to this a scroll
bar was shown for the whole sidebar, and everything was moved when
scrolling to see overflown messages. Now the scroll bar is shown only
for the message list, so it can be scrolled without moving the other
elements in the sidebar.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-10 00:39:43 +01:00
Jan-Christoph Borchardt c3e7f09de2 Still use white icons outside of calls when local video shows
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-10 00:37:28 +01:00
Ivan Sein 95063bca66 Improve title in call info view for oneToOne calls.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2018-01-10 00:33:14 +01:00
Daniel Calviño Sánchez 1caa0be5bb Add methods to update the model attribute and the label placeholder
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-10 00:33:14 +01:00
Jan-Christoph Borchardt e6dfd58cf8 Fix icons not actually turning white
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-10 00:17:35 +01:00
Jan-Christoph Borchardt b458794e6a Submit arrow is supposed to be inside the input field, right padding prevents text overlap
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 23:41:39 +01:00
Jan-Christoph Borchardt 18358b6062 Rename remaining CSS files to SCSS
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 23:37:10 +01:00
Daniel Calviño Sánchez 4cf514478a Fix the update of the EditableTextLabel input
The value of the input was not properly updated when the model attribute
changed. Instead of updating it in that case too now it is always
updated before the input element is shown.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-09 23:36:37 +01:00
Jan-Christoph Borchardt 6af4f0285a Combine fullscreen handling rules, ensure white background if 1 participant fullscreen
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 23:34:16 +01:00
Jan-Christoph Borchardt dda6de7602 Always show app-sidebar-trigger on top, fullscreen icon below
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 23:25:28 +01:00
Jan-Christoph Borchardt 33eaa27c90 Proper default display and hover effect for dark fullscreen and menu icons
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 23:12:24 +01:00
Jan-Christoph Borchardt a10587095c Use dark icons when not in a call (= white background)
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 23:08:25 +01:00
Jan-Christoph Borchardt 51d2039a40
Merge pull request #548 from nextcloud/icons
Replace triangle sidebar trigger with dedicated icon, add icons to sidebar tabs and fix padding
2018-01-09 21:57:38 +01:00
Jan-Christoph Borchardt 404ef18dfb Improve wording on Copy link icon
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 19:54:05 +01:00
Jan-Christoph Borchardt 43881c49a2 Add some whitespace to guest name, prevent jumping on edit
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 19:54:05 +01:00
Jan-Christoph Borchardt 83e1a06258 Reduce whitespace between room info and tabs
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 19:54:05 +01:00
Jan-Christoph Borchardt 2e146cee31 Use variable for text color
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 19:54:05 +01:00
Jan-Christoph Borchardt 9ad16ca7be Move style.css to SCSS
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 19:54:05 +01:00
Jan-Christoph Borchardt 8c9c127c49 Padding fixes and icons for tab headers
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 19:54:05 +01:00
Jan-Christoph Borchardt 876d44a161 Replace triangle sidebar trigger with dedicated icon
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 19:54:05 +01:00
Daniel Calviño Sánchez 4f0a187ac9
Merge pull request #544 from nextcloud/show-chat-view-as-main-view-when-in-a-room-but-not-in-a-call
Show chat view as main view when in a room but not in a call
2018-01-09 17:54:54 +01:00
Joas Schilling 3383c8fdcd
Merge pull request #547 from nextcloud/button-primary
Design enhancements
2018-01-09 16:49:42 +01:00
Jan-Christoph Borchardt c5c923a4c9 Make rename and copy button properly clickable
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 16:07:26 +01:00
Jan-Christoph Borchardt 41be5382c2 Rename room information to room name so it's more obviously editable
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 16:03:42 +01:00
Jan-Christoph Borchardt ec2672679e Proper padding for Share link
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 16:01:33 +01:00
Jan-Christoph Borchardt 32b59d86be Call attention to call button via primary class
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 15:25:45 +01:00
Joas Schilling 2fc857efa0
Merge pull request #545 from nextcloud/focus-again-on-new-message-input-after-sending-a-message
Focus again on new message input after sending a message
2018-01-09 11:45:26 +01:00
Daniel Calviño Sánchez d20dbf6ece Focus again on new message input after sending a message
Some browsers (like Firefox) automatically return the focus to the new
message input after sending a message, while others (like Chromium) do
not. Now the focus is explicitly given back to the new message input to
make more comfortable to keep writing new messages.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-09 11:05:54 +01:00