More settings fixes + clamped long usernames

This commit is contained in:
nizune 2021-08-02 17:25:39 +02:00
parent 2f563ef726
commit 03f572f365
3 changed files with 15 additions and 1 deletions

View file

@ -95,12 +95,20 @@ export default styled.div<BaseMessageProps>`
gap: 8px; gap: 8px;
display: flex; display: flex;
align-items: center; align-items: center;
flex-shrink: 0;
} }
.author { .author {
overflow: hidden;
cursor: pointer; cursor: pointer;
font-weight: 600 !important; font-weight: 600 !important;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
white-space: normal;
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
} }
@ -184,6 +192,7 @@ export const MessageContent = styled.div`
`; `;
export const DetailBase = styled.div` export const DetailBase = styled.div`
flex-shrink: 0;
gap: 4px; gap: 4px;
font-size: 10px; font-size: 10px;
display: inline-flex; display: inline-flex;

View file

@ -76,7 +76,8 @@ const ServerList = styled.div`
flex-grow: 1; flex-grow: 1;
display: flex; display: flex;
overflow-y: scroll; overflow-y: scroll;
padding-bottom: 48px; padding-bottom: 20px;
width: 58px;
flex-direction: column; flex-direction: column;
scrollbar-width: none; scrollbar-width: none;

View file

@ -16,6 +16,10 @@
background: var(--scrollbar-thumb); background: var(--scrollbar-thumb);
} }
::-webkit-scrollbar-corner {
background: transparent;
}
::selection { ::selection {
background: var(--accent); background: var(--accent);
color: var(--foreground); color: var(--foreground);