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

234 Коммитов

Автор SHA1 Сообщение Дата
Joas Schilling bf738393c0
Do not use relative paths to images on the server
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-01-26 12:20:47 +01:00
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
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
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
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
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 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 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
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
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 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
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 ec2672679e Proper padding for Share link
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-01-09 16:01:33 +01:00
Daniel Calviño Sánchez be934f1364 Add padding to the chat view when shown as the main view
The lateral padding is the same used for the chat view when shown in the
sidebar (due to the padding from the tab itself). The same value was
used for the top padding to provide a consistent "frame".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-08 15:35:04 +01:00
Daniel Calviño Sánchez 3cff47a238 Show the chat view as the main view when in a room but not in a call
When shown as the main view, the input field to add a new message is
always shown and a scroll bar is provided just for the list of messages.

Only the chat view is added and removed to and from the main view; the
other elements in the main view are not modified when that happens, and
they are hidden using some CSS magic.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-08 15:35:04 +01:00
Joas Schilling 7fea2fb7f8
Fix deprecated *-white icon
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-01-08 12:51:02 +01:00
Daniel Calviño Sánchez 4507c9ad5c Set height for header element in public pages
The header element contains the header div; as the header div uses a
fixed position the header element has no height, so it must be
explicitly set to prevent #app-content-wrapper from overlapping with the
header element.

Right now it was not very noticeable, as it only affected the empty
content; as it name implies most of the space was empty except for a
message at the centre of the screen, so visually it did not overlap with
the header. However having a proper height set for the header will be a
must once the chat view is shown in the app content wrapper.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-08 12:45:49 +01:00
Artur Bergen 35f2b2fd1c
Renamed class and refactor code
Signed-off-by: Artur Bergen <artur.bergen@struktur.de>
2018-01-08 12:32:36 +01:00
Artur Bergen bd5475e07b
Rebase and fix conflicts
Signed-off-by: Artur Bergen <artur.bergen@struktur.de>
2018-01-08 12:32:36 +01:00
Daniel Calviño Sánchez 081e3fab32 Show submit working icon at the same position as the submit confirm icon
The submit confirm icon is shown as the background image of an
absolutely positioned input element, so the CSS rules for the submit
working icon were modified to match those of the submit confirm icon.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-12-01 02:48:55 +01:00
Joas Schilling 97d2392b05
Merge pull request #491 from nextcloud/force-breaks-on-extremely-long-words
Force breaks on extremely long words in chat messages
2017-11-20 10:13:47 +01:00
Daniel Calviño Sánchez 9e1d7ee33d Force breaks on extremely long words
If not broken extremely long words overflow their container.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-11-17 15:19:28 +01:00
Daniel Calviño Sánchez 96a4942585 Add a header with the date when it changes between messages
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-11-16 13:13:08 +01:00
Daniel Calviño Sánchez bc501ba53c Group temporary near messages by same participant
When two or more consecutive messages were sent by the same participant
with a difference of less than 120 seconds between each message those
messages are now shown grouped (the participant name is not shown for
the intermediate messages and each message is pushed closer to the
previous message).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-11-16 13:13:08 +01:00
Daniel Calviño Sánchez 4efa21ed6a
Hide header of public page in fullscreen mode
The standard Nextcloud header is added automatically outside the
"#app-content" element when using the "user" template, so it is
automatically hidden when "#app-content" is set to fullscreen mode. The
public page uses the "base" template, so it has to provide its own
header element; this element appears inside "#app-content" (probably to
make it transparent using CSS rules during a call), so it has to be
explicitly hidden when in fullscreen mode.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-11-15 12:11:29 +01:00
Daniel Calviño Sánchez 46ce6aae1e Remove pointer cursor from chat messages
Chat messages are not interactive, so they should not use a pointer
cursor.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-11-03 11:49:56 +01:00
Daniel Calviño Sánchez 4c2b2ce7df Add chat view to sidebar tab
The CSS was copied from the Comments app.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-11-03 11:49:56 +01:00
Joas Schilling f7f9e7929c
Allow multiple signaling servers
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-11-02 11:23:51 +01:00
Ivan Sein d7ef5ef868
Merge pull request #458 from nextcloud/add-support-for-right-sidebar-in-public-page
Add support for right sidebar in public page
2017-11-02 11:21:28 +01:00
Daniel Calviño Sánchez e22943f3ba Show link icon next to room name when the user can not moderate
The main room name element is now shown as "inline-block", which causes
the link icon to be placed next to it instead of below.

Due to the change from "block" to "inline-block" there is less available
width for the children input fields; the previous maximum width value is
now too narrow, so that limit to the width was removed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-10-30 13:57:55 +01:00
Daniel Calviño Sánchez 47b4ebdc18 Add sidebar to public page
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-10-30 13:57:55 +01:00
Daniel Calviño Sánchez 2d6a5a7d47 Move guest name from header to right sidebar
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-10-30 13:57:55 +01:00