Change Chat page UI

This commit is contained in:
Bofh 2020-12-30 23:17:58 +01:00
parent 136d51e2bc
commit 3d0eaaea66
5 changed files with 13 additions and 8 deletions

View File

@ -55,7 +55,7 @@ export default {
`, `,
blockedUsers: 'Blocked users', blockedUsers: 'Blocked users',
bookmarks: 'Bookmarks', bookmarks: 'Bookmarks',
directMessages: 'Direct messages', directMessages: 'Chat',
favorites: 'Favorites', favorites: 'Favorites',
federated: 'Federated', federated: 'Federated',
home: 'Home', home: 'Home',
@ -89,7 +89,7 @@ export default {
// not logged in // not logged in
profileNotLoggedIn: 'A user timeline will appear here when logged in.', profileNotLoggedIn: 'A user timeline will appear here when logged in.',
bookmarksNotLoggedIn: 'Your bookmarks will appear here when logged in.', bookmarksNotLoggedIn: 'Your bookmarks will appear here when logged in.',
directMessagesNotLoggedIn: 'Your direct messages will appear here when logged in.', directMessagesNotLoggedIn: 'Your chat will appear here when logged in.',
favoritesNotLoggedIn: 'Your favorites will appear here when logged in.', favoritesNotLoggedIn: 'Your favorites will appear here when logged in.',
federatedTimelineNotLoggedIn: 'Your federated timeline will appear here when logged in.', federatedTimelineNotLoggedIn: 'Your federated timeline will appear here when logged in.',
localTimelineNotLoggedIn: 'Your local timeline will appear here when logged in.', localTimelineNotLoggedIn: 'Your local timeline will appear here when logged in.',
@ -135,7 +135,7 @@ export default {
<li><kbd>g</kbd> + <kbd>l</kbd> to go to the local timeline</li> <li><kbd>g</kbd> + <kbd>l</kbd> to go to the local timeline</li>
<li><kbd>g</kbd> + <kbd>t</kbd> to go to the federated timeline</li> <li><kbd>g</kbd> + <kbd>t</kbd> to go to the federated timeline</li>
<li><kbd>g</kbd> + <kbd>c</kbd> to go to the community page</li> <li><kbd>g</kbd> + <kbd>c</kbd> to go to the community page</li>
<li><kbd>g</kbd> + <kbd>d</kbd> to go to the direct messages page</li> <li><kbd>g</kbd> + <kbd>d</kbd> to go to the chat page</li>
<li><kbd>h</kbd> or <kbd>?</kbd> to toggle the help dialog</li> <li><kbd>h</kbd> or <kbd>?</kbd> to toggle the help dialog</li>
<li><kbd>Backspace</kbd> to go back, close dialogs</li> <li><kbd>Backspace</kbd> to go back, close dialogs</li>
`, `,

View File

@ -15,7 +15,11 @@
.dynamic-page-banner { .dynamic-page-banner {
display: grid; display: grid;
align-items: center; align-items: center;
margin: 20px 20px 20px; text-align: right;
margin: 0;
padding: .5em 1em;
background: #fff;
border-bottom: 2px solid #959595;
grid-template-columns: 1fr min-content; grid-template-columns: 1fr min-content;
grid-column-gap: 10px; grid-column-gap: 10px;
} }
@ -32,6 +36,7 @@
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
font-size: 1.3em;
} }
.dynamic-page-go-back { .dynamic-page-go-back {
font-size: 1.3em; font-size: 1.3em;
@ -50,7 +55,7 @@
} }
@media (max-width: 767px) { @media (max-width: 767px) {
.dynamic-page-banner { .dynamic-page-banner {
margin: 20px 10px 20px; margin: 0;
} }
.dynamic-page-title { .dynamic-page-title {
font-size: 1.3em; font-size: 1.3em;

View File

@ -21,7 +21,7 @@
<style> <style>
.status-mentions { .status-mentions {
grid-area: mentions; grid-area: mentions;
margin: 10px 0 10px 5px; margin: 0;
font-size: 0.9em; font-size: 0.9em;
} }

View File

@ -1,7 +1,7 @@
{#if $isUserLoggedIn} {#if $isUserLoggedIn}
<TimelinePage timeline="direct"> <TimelinePage timeline="direct">
{#if $pinnedPage !== '/direct'} {#if $pinnedPage !== '/direct'}
<DynamicPageBanner title="{intl.directMessages}" icon="#fa-envelope"/> <DynamicPageBanner title="{intl.directMessages}" icon="#fa-comments"/>
{/if} {/if}
</TimelinePage> </TimelinePage>
{:else} {:else}

View File

@ -210,7 +210,7 @@ div.main-content.chat {
} }
} }
div.main-content.direct { div.main-content.direct {
div.timeline-slot-reveal-container { button.dynamic-page-go-back {
visibility: collapse; visibility: collapse;
display: none; display: none;
} }