Apply the flat composer chrome to all themes instead of stationery only.
Trigger cinny-mobile / dispatch (push) Successful in 1s
Trigger cinny-mobile / dispatch (push) Successful in 1s
This commit is contained in:
@@ -6,8 +6,8 @@ export const RoomInputWrap = style({
|
|||||||
width: '100%',
|
width: '100%',
|
||||||
});
|
});
|
||||||
|
|
||||||
/* Notebook-flat composer chrome — Stationery only (other themes keep Editor inset border) */
|
/* Notebook-flat composer chrome — all themes */
|
||||||
globalStyle(`.stationery ${RoomInputWrap} .${editorCss.Editor}`, {
|
globalStyle(`${RoomInputWrap} .${editorCss.Editor}`, {
|
||||||
borderRadius: 0,
|
borderRadius: 0,
|
||||||
boxShadow: 'none',
|
boxShadow: 'none',
|
||||||
borderTop: `${config.borderWidth.B300} solid ${color.SurfaceVariant.ContainerLine}`,
|
borderTop: `${config.borderWidth.B300} solid ${color.SurfaceVariant.ContainerLine}`,
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ import colorMXID from '../../../util/colorMXID';
|
|||||||
import { useIsDirectRoom } from '../../hooks/useRoom';
|
import { useIsDirectRoom } from '../../hooks/useRoom';
|
||||||
import { useAccessiblePowerTagColors, useGetMemberPowerTag } from '../../hooks/useMemberPowerTag';
|
import { useAccessiblePowerTagColors, useGetMemberPowerTag } from '../../hooks/useMemberPowerTag';
|
||||||
import { useRoomCreators } from '../../hooks/useRoomCreators';
|
import { useRoomCreators } from '../../hooks/useRoomCreators';
|
||||||
import { isStationeryTheme, useTheme } from '../../hooks/useTheme';
|
import { useTheme } from '../../hooks/useTheme';
|
||||||
import { useRoomCreatorsTag } from '../../hooks/useRoomCreatorsTag';
|
import { useRoomCreatorsTag } from '../../hooks/useRoomCreatorsTag';
|
||||||
import { usePowerLevelTags } from '../../hooks/usePowerLevelTags';
|
import { usePowerLevelTags } from '../../hooks/usePowerLevelTags';
|
||||||
import { useComposingCheck } from '../../hooks/useComposingCheck';
|
import { useComposingCheck } from '../../hooks/useComposingCheck';
|
||||||
@@ -694,9 +694,9 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
|
|||||||
backgroundColor: color.SurfaceVariant.Container,
|
backgroundColor: color.SurfaceVariant.Container,
|
||||||
border: `${config.borderWidth.B300} solid ${color.SurfaceVariant.ContainerLine}`,
|
border: `${config.borderWidth.B300} solid ${color.SurfaceVariant.ContainerLine}`,
|
||||||
borderBottom: 'none',
|
borderBottom: 'none',
|
||||||
borderRadius: isStationeryTheme(theme) ? 0 : undefined,
|
borderRadius: 0,
|
||||||
borderTopLeftRadius: isStationeryTheme(theme) ? undefined : config.radii.R400,
|
borderTopLeftRadius: 0,
|
||||||
borderTopRightRadius: isStationeryTheme(theme) ? undefined : config.radii.R400,
|
borderTopRightRadius: 0,
|
||||||
marginBottom: config.space.S100,
|
marginBottom: config.space.S100,
|
||||||
}}
|
}}
|
||||||
direction="Column"
|
direction="Column"
|
||||||
|
|||||||
Reference in New Issue
Block a user