mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Improve DM unread indicators and profile modal layout
This commit is contained in:
1 parent
225c6a1674
commit
d45d380e40
6 files changed
+112
-20
No files matched your search
+59
-6
@@ -237,10 +237,10 @@
|
||||
|
||||
#profileUnreadDot {
|
||||
position: absolute;
|
||||
top: var(--space-3xs);
|
||||
right: var(--space-3xs);
|
||||
width: calc(var(--space-2xs) + var(--space-3xs));
|
||||
height: calc(var(--space-2xs) + var(--space-3xs));
|
||||
top: var(--space-2xs);
|
||||
right: var(--space-2xs);
|
||||
width: var(--space-sm);
|
||||
height: var(--space-sm);
|
||||
border-radius: 999px;
|
||||
border: var(--border-width-hairline) solid var(--color-page);
|
||||
background-color: var(--status-danger);
|
||||
@@ -2820,6 +2820,7 @@
|
||||
min-block-size: 100%;
|
||||
max-block-size: none;
|
||||
overflow: hidden;
|
||||
--modal-sheet-inline-max: var(--profile-modal-inline-max);
|
||||
--profile-modal-scale: 0.9;
|
||||
--profile-modal-gap: calc(
|
||||
(var(--space-md) - var(--space-3xs)) * var(--profile-modal-scale)
|
||||
@@ -3008,6 +3009,23 @@
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.profile-nav__unread-dot {
|
||||
position: absolute;
|
||||
top: var(--space-3xs);
|
||||
right: var(--space-3xs);
|
||||
width: var(--space-sm);
|
||||
height: var(--space-sm);
|
||||
border-radius: 999px;
|
||||
border: var(--border-width-hairline) solid var(--surface-panel);
|
||||
background-color: var(--status-danger);
|
||||
display: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.profile-nav__unread-dot.is-visible {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.profile-modal__panes {
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
@@ -5006,6 +5024,12 @@
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.profile-modal .dm-app-shell {
|
||||
min-height: 0;
|
||||
height: auto;
|
||||
padding: var(--space-md);
|
||||
}
|
||||
|
||||
.dm-app-shell__sidebar,
|
||||
.dm-app-shell__main {
|
||||
border-radius: var(--radius-lg);
|
||||
@@ -5014,6 +5038,12 @@
|
||||
box-shadow: var(--shadow-soft);
|
||||
}
|
||||
|
||||
.profile-modal .dm-app-shell__sidebar,
|
||||
.profile-modal .dm-app-shell__main {
|
||||
height: auto;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.dm-app-shell__sidebar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -5035,6 +5065,11 @@
|
||||
background: var(--surface-raised);
|
||||
}
|
||||
|
||||
.profile-modal .dm-app-shell__main,
|
||||
.profile-modal .dm-app-shell__sidebar {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.dm-conversation-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -5686,8 +5721,8 @@
|
||||
}
|
||||
|
||||
.dm-app-shell__sidebar {
|
||||
flex: 0 0 var(--size-18rem);
|
||||
max-width: var(--size-20rem);
|
||||
flex: 0 0 var(--size-18rem);
|
||||
max-width: var(--size-20rem);
|
||||
height: calc(100vh - var(--space-lg) * 2);
|
||||
}
|
||||
|
||||
@@ -5701,6 +5736,24 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: theme("screens.md")) {
|
||||
.profile-modal .dm-app-shell {
|
||||
flex-direction: row;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.profile-modal .dm-app-shell__sidebar {
|
||||
flex: 0 0 var(--size-18rem);
|
||||
max-width: var(--size-20rem);
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.profile-modal .dm-app-shell__main {
|
||||
flex: 1 1 auto;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: theme("screens.lg")) {
|
||||
.dm-app-shell__sidebar {
|
||||
flex-basis: var(--size-20rem);
|
||||
|
||||
Reference in new issue
Block a user