2
0
Эх сурвалжийг харах

Make `fullscreen` the default view mode.

JC Brand 8 сар өмнө
parent
commit
3dd96c2c26

+ 1 - 0
CHANGES.md

@@ -42,6 +42,7 @@
 - Fix: trying to use an emojis with an uppercase letter breaks the message field.
 - Fix: renaming getEmojisByAtrribute to getEmojisByAttribute.
 - New config option [stanza_timeout](https://conversejs.org/docs/html/configuration.html#show-background)
+- Make `fullscreen` the default `view_mode`.
 
 ### Breaking changes:
 

+ 1 - 1
dev.html

@@ -37,7 +37,7 @@
         muc_respect_autojoin: true,
         muc_show_logs_before_join: true,
         notify_all_room_messages: ['discuss@conference.conversejs.org'],
-        view_mode: 'fullscreen',
+        // view_mode: 'fullscreen',
         websocket_url: 'wss://conversejs.org/xmpp-websocket',
         // websocket_url: 'ws://chat.example.org:5380/xmpp-websocket',
         whitelisted_plugins: ['converse-debug'],

+ 5 - 5
docs/source/configuration.rst

@@ -2286,14 +2286,14 @@ support.
 view_mode
 ---------
 
-* Default: ``overlayed``
-* Allowed values: ``overlayed``, ``fullscreen``, ``embedded``
+* Default: ``fullscreen``
+* Allowed values: ``fullscreen``, ``overlayed``, ``embedded``
 
 The ``view_mode`` setting configures Converse's mode and resulting behavior.
 
-* ``overlayed`` is the original mode, in which the chats appeared as small boxes overlaying a webpage which can contain arbitrary content.
-* ``fullscreen`` is for a fullpage and single-page app.
-* ``embedded`` is used to embed Converse into a particular part of the web page. Put the custom element ``<converse-root></converse-root>`` into your page HTML there were you want Converse to appear. See `conversejs.org/demo/embedded.html <https://conversejs.org/demo/embedded.html>`_ for an example of this view mode.
+* ``fullscreen``: Is for a fullpage and single-page app.
+* ``overlayed``: Chats appear as boxes overlaying a pre-existing webpage which may contain arbitrary content.
+* ``embedded``: Used to embed Converse into a particular part of the web page. Put the custom element ``<converse-root></converse-root>`` into your page HTML there were you want Converse to appear. See `conversejs.org/demo/embedded.html <https://conversejs.org/demo/embedded.html>`_ for an example of this view mode.
 
 .. _`whitelisted_plugins`:
 

+ 2 - 2
src/headless/shared/settings/constants.js

@@ -28,7 +28,7 @@
  * @property { String } [sid]
  * @property { Boolean } [singleton=false]
  * @property { Boolean } [strict_plugin_dependencies=false]
- * @property { ('overlayed'|'fullscreen'|'embedded') } [view_mode='overlayed']
+ * @property { ('fullscreen'|'embedded'|'overlayed') } [view_mode='fullscreen']
  * @property { String } [websocket_url]
  * @property { Array<String>} [whitelisted_plugins]
  */
@@ -103,7 +103,7 @@ export const DEFAULT_SETTINGS = {
     singleton: false,
     strict_plugin_dependencies: false,
     stanza_timeout: 60000,
-    view_mode: 'overlayed',
+    view_mode: 'fullscreen',
     websocket_url: undefined,
     whitelisted_plugins: [],
 };