diff --git a/src/routes/_components/status/MeetStatus.html b/src/routes/_components/status/MeetStatus.html new file mode 100644 index 00000000..4eeae8cb --- /dev/null +++ b/src/routes/_components/status/MeetStatus.html @@ -0,0 +1,270 @@ +
+
+ + {#if content && (showContent || preloadHiddenContent)} + + {/if} +
+ +
+ + diff --git a/src/routes/_components/timeline/MeetStatusVirtualListItem.html b/src/routes/_components/timeline/MeetStatusVirtualListItem.html new file mode 100644 index 00000000..e360cf5d --- /dev/null +++ b/src/routes/_components/timeline/MeetStatusVirtualListItem.html @@ -0,0 +1,17 @@ + + diff --git a/src/routes/_components/timeline/Timeline.html b/src/routes/_components/timeline/Timeline.html index 417b93e9..5fe18e83 100644 --- a/src/routes/_components/timeline/Timeline.html +++ b/src/routes/_components/timeline/Timeline.html @@ -34,6 +34,7 @@ import { importVirtualList } from '../../_utils/asyncModules/importVirtualList' import { importList } from '../../_utils/asyncModules/importList' import { importStatusVirtualListItem } from '../../_utils/asyncModules/importStatusVirtualListItem' + import { importMeetStatusVirtualListItem } from '../../_utils/asyncModules/importMeetStatusVirtualListItem' import { importNotificationVirtualListItem } from '../../_utils/asyncModules/importNotificationVirtualListItem' import { timelines } from '../../_static/timelines' import { @@ -78,7 +79,7 @@ : importVirtualList(), timelineType === 'notifications' ? importNotificationVirtualListItem() - : importStatusVirtualListItem() + : ( timelineType === 'federated' ? importMeetStatusVirtualListItem() : importStatusVirtualListItem()) ]).then(results => ({ listComponent: results[0], listItemComponent: results[1] diff --git a/src/routes/_utils/asyncModules/importMeetStatusVirtualListItem.js b/src/routes/_utils/asyncModules/importMeetStatusVirtualListItem.js new file mode 100644 index 00000000..cdf8a4a0 --- /dev/null +++ b/src/routes/_utils/asyncModules/importMeetStatusVirtualListItem.js @@ -0,0 +1,3 @@ +export const importMeetStatusVirtualListItem = () => import( + /* webpackChunkName: 'MeetStatusVirtualListItem.html' */ '../../_components/timeline/MeetStatusVirtualListItem.html' +).then(mod => mod.default) diff --git a/src/scss/themes/ozark.scss b/src/scss/themes/ozark.scss index af02efbb..d8c445dc 100644 --- a/src/scss/themes/ozark.scss +++ b/src/scss/themes/ozark.scss @@ -196,6 +196,43 @@ main { border: none !important; } +div.main-content.meet { + + div.virtual-list-item { + height: 100vh; + + div.meet-content { + background-image: linear-gradient(transparent, #000000bf); + + a.status-sidebar > img.avatar { + width: 10em; + height: 10em; + } + div.status-content { + color: #fff; + } + } + + div.meet-footer { + position: absolute; + bottom: 0; + display: flex; + width: 100%; + height: 4em; + padding: 0 1em; + background-color: #000000d4; + + a { + color: #fff !important; + } + span.status-author-handle, time { + color: #cecece !important; + } + } + + } +} + div.main-content.chat { background: var(--main-bg); diff --git a/static/fedilove-no-react.js b/static/fedilove-no-react.js index 308fd696..45868c34 100644 --- a/static/fedilove-no-react.js +++ b/static/fedilove-no-react.js @@ -323,6 +323,9 @@ function fedilove_customization() { else if (window.location.pathname == '/direct') { $('div.main-content').addClass('direct'); } + else if (window.location.pathname == '/federated') { + $('div.main-content').addClass('meet'); + } else if (window.location.pathname.startsWith('/notifications/mentions')) { $('nav.notification-filters li > a.focus-fix').attr('onclick', 'return false;'); }