mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
fix(app): backport rendering improvements (#1580)
This commit is contained in:
1 parent
0c291a01da
commit
42cdc1f877
513 files changed
+98743
-70397
No files matched your search
@@ -76,6 +76,29 @@
|
||||
}
|
||||
|
||||
.newMessagesBar {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 0.625rem;
|
||||
transform: translateX(-50%);
|
||||
z-index: var(--z-index-elevated-3);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
width: max-content;
|
||||
max-width: calc(100% - 2rem);
|
||||
min-height: 2.75rem;
|
||||
padding: 0.375rem 0.5rem 0.375rem 0.875rem;
|
||||
border: 0.0625rem solid color-mix(in srgb, var(--background-modifier-accent) 80%, transparent);
|
||||
border-radius: var(--radius-full);
|
||||
background: color-mix(in srgb, var(--background-textarea) 88%, var(--background-tertiary) 12%);
|
||||
box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.18);
|
||||
box-sizing: border-box;
|
||||
color: var(--text-primary);
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.newMessagesBarBanner {
|
||||
position: absolute;
|
||||
left: 0.5rem;
|
||||
right: 0.5rem;
|
||||
@@ -90,22 +113,7 @@
|
||||
background: var(--brand-primary);
|
||||
}
|
||||
|
||||
.jumpToPresentBar {
|
||||
box-sizing: border-box;
|
||||
border: 0.0625rem solid color-mix(in srgb, var(--background-modifier-accent) 80%, transparent);
|
||||
border-bottom: 0;
|
||||
background: var(--background-tertiary);
|
||||
}
|
||||
|
||||
.jumpToPresentBar .newMessagesBarText {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.jumpToPresentBar .newMessagesBarAction {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.newMessagesBarText {
|
||||
.newMessagesBarBannerText {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
@@ -123,7 +131,7 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.newMessagesBarAction {
|
||||
.newMessagesBarBannerAction {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
@@ -137,6 +145,82 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.messageBottomPill {
|
||||
top: auto;
|
||||
bottom: 0.625rem;
|
||||
}
|
||||
|
||||
.jumpToPresentBar {
|
||||
background: color-mix(in srgb, var(--background-textarea) 90%, var(--background-tertiary) 10%);
|
||||
}
|
||||
|
||||
.jumpToPresentBar .newMessagesBarText {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.loadErrorBar {
|
||||
border-color: color-mix(in srgb, var(--status-danger) 48%, var(--background-modifier-accent) 52%);
|
||||
background: color-mix(in srgb, var(--status-danger) 12%, var(--background-textarea) 88%);
|
||||
}
|
||||
|
||||
.loadErrorBar .newMessagesBarText {
|
||||
color: var(--status-danger);
|
||||
}
|
||||
|
||||
.newMessagesBarText {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
max-width: min(34rem, calc(100vw - 14rem));
|
||||
display: block;
|
||||
color: var(--text-primary);
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
line-height: 1.25;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.newMessagesBarAction {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.375rem;
|
||||
min-height: 2rem;
|
||||
padding: 0 0.75rem;
|
||||
border: 0;
|
||||
border-radius: var(--radius-full);
|
||||
background: var(--background-modifier-hover);
|
||||
color: var(--text-primary);
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
flex: 0 0 auto;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.newMessagesBarAction:hover:not(:disabled) {
|
||||
background: var(--background-modifier-active);
|
||||
}
|
||||
|
||||
.newMessagesBarAction:disabled {
|
||||
cursor: wait;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
@media (max-width: 520px) {
|
||||
.newMessagesBar {
|
||||
max-width: calc(100% - 1rem);
|
||||
padding-left: 0.75rem;
|
||||
}
|
||||
|
||||
.newMessagesBarText {
|
||||
max-width: min(45vw, 14rem);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
}
|
||||
|
||||
.loadMoreContainer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
Reference in new issue
Block a user