mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
feat: improve DM mobile navigation with list/thread toggle
- Implement mobile view state management (`list` vs `thread`) in `ProfileModalController`. - Update `AppShell` to apply `data-dm-view` attribute for CSS toggling. - Update `MessageThread` to render a "Back" button on mobile. - Add CSS rules to hide/show sidebar and thread panels based on mobile view state. - Ensure desktop layout remains split-pane.
This commit is contained in:
1 parent
d7de9d58d1
commit
febbc27706
6 files changed
+51
-2
No files matched your search
@@ -5754,6 +5754,20 @@
|
||||
min-height: var(--space-md);
|
||||
}
|
||||
|
||||
@media (max-width: 767.98px) {
|
||||
.dm-app-shell[data-dm-view="list"] .dm-app-shell__main {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.dm-app-shell[data-dm-view="thread"] .dm-app-shell__sidebar {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.dm-message-thread__back {
|
||||
@apply inline-flex items-center gap-2;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: theme("screens.md")) {
|
||||
.dm-app-shell {
|
||||
flex-direction: row;
|
||||
@@ -5764,16 +5778,22 @@
|
||||
flex: 0 0 var(--size-18rem);
|
||||
max-width: var(--size-20rem);
|
||||
height: calc(100vh - var(--space-lg) * 2);
|
||||
display: flex !important;
|
||||
}
|
||||
|
||||
.dm-app-shell__main {
|
||||
height: calc(100vh - var(--space-lg) * 2);
|
||||
display: flex !important;
|
||||
}
|
||||
|
||||
.dm-conversation-list__items {
|
||||
max-height: none;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.dm-message-thread__back {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: theme("screens.md")) {
|
||||
|
||||
Reference in new issue
Block a user