about summary refs log tree commit diff
path: root/app/javascript/mastodon/actions/app.js
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-11-16 05:16:39 +0100
committerGitHub <noreply@github.com>2020-11-16 05:16:39 +0100
commit18ca4e0e9a3f74a6f21d329882b429f8f5227b0f (patch)
treed33d0d97a61e06b266874e9f1bdf597c78d7001b /app/javascript/mastodon/actions/app.js
parent04a079e7230bc4e73b897e3c4462011cddf36474 (diff)
Fix pop-out player appearing on mobile screens in web UI (#15157)
Fix #15092
Diffstat (limited to 'app/javascript/mastodon/actions/app.js')
-rw-r--r--app/javascript/mastodon/actions/app.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/javascript/mastodon/actions/app.js b/app/javascript/mastodon/actions/app.js
index 414968f7d..c817c8708 100644
--- a/app/javascript/mastodon/actions/app.js
+++ b/app/javascript/mastodon/actions/app.js
@@ -8,3 +8,10 @@ export const focusApp = () => ({
 export const unfocusApp = () => ({
   type: APP_UNFOCUS,
 });
+
+export const APP_LAYOUT_CHANGE = 'APP_LAYOUT_CHANGE';
+
+export const changeLayout = layout => ({
+  type: APP_LAYOUT_CHANGE,
+  layout,
+});