Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ed494d2ae5 |
@@ -1,10 +1,11 @@
|
|||||||
import { style } from '@vanilla-extract/css';
|
import { style } from '@vanilla-extract/css';
|
||||||
import { config, toRem } from 'folds';
|
import { config } from 'folds';
|
||||||
|
import { SIDE_PANEL_WIDTH } from '../../styles/sidePanel';
|
||||||
|
|
||||||
// Mirrors MembersDrawer: a 266px side panel on desktop that becomes a
|
// Mirrors MembersDrawer: a side panel (shared width) on desktop that becomes a
|
||||||
// full-screen fixed panel on narrow viewports — the app's canonical drawer.
|
// full-screen fixed panel on narrow viewports — the app's canonical drawer.
|
||||||
export const BookmarksPanel = style({
|
export const BookmarksPanel = style({
|
||||||
width: toRem(266),
|
width: SIDE_PANEL_WIDTH,
|
||||||
'@media': {
|
'@media': {
|
||||||
'(max-width: 750px)': {
|
'(max-width: 750px)': {
|
||||||
position: 'fixed',
|
position: 'fixed',
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
import { style } from '@vanilla-extract/css';
|
import { style } from '@vanilla-extract/css';
|
||||||
import { color, config, toRem } from 'folds';
|
import { color, config, toRem } from 'folds';
|
||||||
|
import { SIDE_PANEL_WIDTH } from '../../styles/sidePanel';
|
||||||
|
|
||||||
// Right-side drawer DOCKED into the room layout row (a flex sibling of the
|
// Right-side drawer DOCKED into the room layout row (a flex sibling of the
|
||||||
// timeline), exactly like MembersDrawer — not a floating overlay. 320px is a
|
// timeline), exactly like MembersDrawer — not a floating overlay. Same width as
|
||||||
// little wider than the 266px member/bookmark drawers because it hosts a media
|
// every other right-hand panel (styles/sidePanel.ts, #263). On narrow viewports
|
||||||
// grid. On narrow viewports it becomes a full-screen fixed panel, matching the
|
// it becomes a full-screen fixed panel, matching the app's other drawers.
|
||||||
// app's other drawers.
|
|
||||||
export const MediaGalleryDrawer = style({
|
export const MediaGalleryDrawer = style({
|
||||||
width: toRem(320),
|
width: SIDE_PANEL_WIDTH,
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
'@media': {
|
'@media': {
|
||||||
'(max-width: 750px)': {
|
'(max-width: 750px)': {
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { keyframes, style } from '@vanilla-extract/css';
|
import { keyframes, style } from '@vanilla-extract/css';
|
||||||
import { config, toRem } from 'folds';
|
import { config } from 'folds';
|
||||||
|
import { SIDE_PANEL_WIDTH } from '../../styles/sidePanel';
|
||||||
|
|
||||||
export const MembersDrawer = style({
|
export const MembersDrawer = style({
|
||||||
width: toRem(266),
|
width: SIDE_PANEL_WIDTH,
|
||||||
'@media': {
|
'@media': {
|
||||||
'(max-width: 750px)': {
|
'(max-width: 750px)': {
|
||||||
position: 'fixed',
|
position: 'fixed',
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { style } from '@vanilla-extract/css';
|
import { style } from '@vanilla-extract/css';
|
||||||
import { config, toRem } from 'folds';
|
import { config } from 'folds';
|
||||||
|
import { SIDE_PANEL_WIDTH } from '../../../styles/sidePanel';
|
||||||
|
|
||||||
export const ThreadPanel = style({
|
export const ThreadPanel = style({
|
||||||
width: toRem(360),
|
width: SIDE_PANEL_WIDTH,
|
||||||
'@media': {
|
'@media': {
|
||||||
'(max-width: 750px)': {
|
'(max-width: 750px)': {
|
||||||
position: 'fixed',
|
position: 'fixed',
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { style } from '@vanilla-extract/css';
|
import { style } from '@vanilla-extract/css';
|
||||||
import { color, config, toRem } from 'folds';
|
import { color, config } from 'folds';
|
||||||
|
import { SIDE_PANEL_WIDTH } from '../../../styles/sidePanel';
|
||||||
|
|
||||||
export const ThreadsListPanel = style({
|
export const ThreadsListPanel = style({
|
||||||
width: toRem(340),
|
width: SIDE_PANEL_WIDTH,
|
||||||
'@media': {
|
'@media': {
|
||||||
'(max-width: 750px)': {
|
'(max-width: 750px)': {
|
||||||
position: 'fixed',
|
position: 'fixed',
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { style } from '@vanilla-extract/css';
|
import { style } from '@vanilla-extract/css';
|
||||||
import { config, toRem } from 'folds';
|
import { config } from 'folds';
|
||||||
|
import { SIDE_PANEL_WIDTH } from '../../../styles/sidePanel';
|
||||||
|
|
||||||
export const WidgetsPanel = style({
|
export const WidgetsPanel = style({
|
||||||
width: toRem(360),
|
width: SIDE_PANEL_WIDTH,
|
||||||
'@media': {
|
'@media': {
|
||||||
'(max-width: 750px)': {
|
'(max-width: 750px)': {
|
||||||
position: 'fixed',
|
position: 'fixed',
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import { toRem } from 'folds';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* One width for every right-hand room panel (members, bookmarks, threads, a
|
||||||
|
* thread, media gallery, widgets). Swapping one panel for another must not
|
||||||
|
* resize the room view: when the widths differed, the header icons slid
|
||||||
|
* sideways and a second click on the same spot hit a different button (#263).
|
||||||
|
*/
|
||||||
|
export const SIDE_PANEL_WIDTH = toRem(340);
|
||||||
Reference in New Issue
Block a user