Design of the meet timeline, improved a lot

This commit is contained in:
Bofh 2020-12-31 18:39:13 +01:00
parent 058a41019c
commit 20f499f8e0
4 changed files with 77 additions and 4 deletions

View File

@ -10,6 +10,8 @@
> >
<div class="meet-content"> <div class="meet-content">
<StatusSidebar {...params} /> <StatusSidebar {...params} />
</div>
<div class="meet-msg">
{#if content && (showContent || preloadHiddenContent)} {#if content && (showContent || preloadHiddenContent)}
<StatusContent {...params} shown={showContent}/> <StatusContent {...params} shown={showContent}/>
{/if} {/if}

View File

@ -1,5 +1,12 @@
<Nav {page} /> <Nav {page} />
<div id="meet-navigation" style="display: none">
<div id="overlay"></div>
<a id="back" href="javascript:window.history.back()" >
<svg xmlns="http://www.w3.org/2000/svg" height="40" viewBox="0 0 24 24" width="40"><path d="M0 0h24v24H0V0z" fill="none"></path><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"></path></svg>
</a>
</div>
<div id="chat-compose-global" style="visibility: collapse"> <div id="chat-compose-global" style="visibility: collapse">
<table class="compose"><tbody> <table class="compose"><tbody>
<tr> <tr>

View File

@ -61,6 +61,38 @@ body.chat {
} }
} }
body.meet {
div#sapper {
background: #959595;
}
div#meet-navigation {
div#overlay {
width: 100vw;
height: 5em;
position: fixed;
background-image: linear-gradient(#0009, transparent);
z-index: 1;
overflow: visible;
pointer-events: none;
}
a#back {
position: fixed;
z-index: 10;
right: 0;
svg {
fill: #ffffffa3;
}
}
}
}
div#chat-party-global { div#chat-party-global {
display: flex; display: flex;
height: 3.6em; height: 3.6em;
@ -197,20 +229,40 @@ main {
} }
div.main-content.meet { div.main-content.meet {
padding-top: 0 !important;
main {
width: initial !important;
}
div.infinite-scroll-page {
background: transparent !important;
}
div.virtual-list-item { div.virtual-list-item {
height: 100vh;
div.meet-content { div.meet-content {
height: 100vh;
max-height: 50em;
background-image: linear-gradient(transparent, #000000bf); background-image: linear-gradient(transparent, #000000bf);
a.status-sidebar > img.avatar { a.status-sidebar > img.avatar {
width: 10em; margin: 1em;
height: 10em; width: 12em;
height: 12em;
} }
}
div.meet-msg {
div.status-content { div.status-content {
position: absolute;
padding: 2em;
bottom: 8%;
color: #fff; color: #fff;
} }
} }
div.meet-footer { div.meet-footer {
@ -220,7 +272,7 @@ div.main-content.meet {
width: 100%; width: 100%;
height: 4em; height: 4em;
padding: 0 1em; padding: 0 1em;
background-color: #000000d4; background-image: linear-gradient(transparent, #000);
a { a {
color: #fff !important; color: #fff !important;
@ -231,6 +283,12 @@ div.main-content.meet {
} }
} }
div.dynamic-page-banner[role="navigation"] {
visibility: collapse;
display: none;
}
} }
div.main-content.chat { div.main-content.chat {
@ -246,6 +304,7 @@ div.main-content.chat {
display: none; display: none;
} }
} }
div.main-content.direct { div.main-content.direct {
button.dynamic-page-go-back { button.dynamic-page-go-back {
visibility: collapse; visibility: collapse;

View File

@ -218,6 +218,7 @@ function fedilove_customization() {
document.body.classList = ''; document.body.classList = '';
document.querySelector('.main-content').classList = "main-content"; document.querySelector('.main-content').classList = "main-content";
document.querySelector('#meet-navigation').style = 'display: none';
document.querySelector('#chat-compose-global').style = 'visibility: collapse'; document.querySelector('#chat-compose-global').style = 'visibility: collapse';
document.querySelector('#chat-party-hide').style = 'display: none !important'; document.querySelector('#chat-party-hide').style = 'display: none !important';
document.querySelector('nav#main-nav > ul.main-nav-ul').style = ''; document.querySelector('nav#main-nav > ul.main-nav-ul').style = '';
@ -322,9 +323,13 @@ function fedilove_customization() {
} }
else if (window.location.pathname == '/direct') { else if (window.location.pathname == '/direct') {
$('div.main-content').addClass('direct'); $('div.main-content').addClass('direct');
$('body').addClass('direct');
} }
else if (window.location.pathname == '/federated') { else if (window.location.pathname == '/federated') {
$('div.main-content').addClass('meet'); $('div.main-content').addClass('meet');
$('body').addClass('meet');
document.querySelector('nav#main-nav > ul.main-nav-ul').style = 'display: none !important';
document.querySelector('#meet-navigation').style = '';
} }
else if (window.location.pathname.startsWith('/notifications/mentions')) { else if (window.location.pathname.startsWith('/notifications/mentions')) {
$('nav.notification-filters li > a.focus-fix').attr('onclick', 'return false;'); $('nav.notification-filters li > a.focus-fix').attr('onclick', 'return false;');