Some checks failed
Build pull request / Build pull request (pull_request) Failing after 3m31s
- the name pill is at most bubble width minus portrait minus 30px, so it cannot reach the face - a bubble with a portrait is at least portrait + 170px wide, so text beside a right portrait no longer wraps into a ~100px column - <=480px: the pose status block shows only the newest mood plus "+N more" on one line, tap to expand; the read-receipt line is hidden and its slot is an 8px margin under the composer Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import { style } from '@vanilla-extract/css';
|
|
import { DefaultReset, color, config, toRem } from 'folds';
|
|
|
|
const NARROW = 'screen and (max-width: 480px)';
|
|
|
|
export const StatusBlock = style([
|
|
DefaultReset,
|
|
{
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
flexShrink: 0,
|
|
padding: `0 ${toRem(16)}`,
|
|
// Phones: the newest mood and its "+N more" share one line.
|
|
'@media': { [NARROW]: { flexDirection: 'row', flexWrap: 'wrap', alignItems: 'center' } },
|
|
},
|
|
]);
|
|
|
|
// On phones only the newest mood shows until the strip is tapped; wide screens show every line.
|
|
export const StatusRow = style({
|
|
'@media': {
|
|
[NARROW]: {
|
|
selectors: {
|
|
'&[data-newest="false"]': { display: 'none' },
|
|
[`${StatusBlock}[data-open="true"] &`]: { display: 'block', flexBasis: '100%' },
|
|
},
|
|
},
|
|
},
|
|
});
|
|
|
|
export const StatusToggle = style([
|
|
DefaultReset,
|
|
{
|
|
display: 'none',
|
|
minHeight: toRem(24),
|
|
padding: `0 ${config.space.S100}`,
|
|
color: color.Primary.Main,
|
|
cursor: 'pointer',
|
|
'@media': { [NARROW]: { display: 'block' } },
|
|
},
|
|
]);
|