This commit is contained in:
seb
2026-07-31 18:37:08 +02:00
parent 083e48f621
commit d08cf7f2df
4 changed files with 10 additions and 6 deletions

View File

@@ -40,7 +40,7 @@ function ArticlePhoto() {
height: 200, height: 200,
maxWidth: '100%', maxWidth: '100%',
bgcolor: 'action.hover', bgcolor: 'action.hover',
borderRadius: 1, borderRadius: 2,
}} }}
/> />
); );

View File

@@ -201,7 +201,7 @@ class EditablePanelTileBase extends Component {
return ( return (
<Paper <Paper
elevation={0} elevation={4}
sx={panelTilePaperSx({ sx={panelTilePaperSx({
wide, wide,
sx, sx,

View File

@@ -25,7 +25,7 @@ class PanelTileBase extends Component {
return ( return (
<Paper <Paper
elevation={0} elevation={4}
sx={panelTilePaperSx({ sx={panelTilePaperSx({
wide, wide,
sx, sx,

View File

@@ -22,6 +22,8 @@ export function panelTileBackground(theme, tileKey) {
return theme.panelTiles[tileKey]; return theme.panelTiles[tileKey];
} }
export const PANEL_TILE_BORDER_RADIUS = 4;
export function panelTilePaperSx({ export function panelTilePaperSx({
wide, wide,
sx, sx,
@@ -32,6 +34,8 @@ export function panelTilePaperSx({
}) { }) {
const tileBg = panelTileBackground(theme, tileKey); const tileBg = panelTileBackground(theme, tileKey);
const elevationShadow = theme?.shadows?.[4];
return { return {
gridColumn: responsiveColumnSpan(wide), gridColumn: responsiveColumnSpan(wide),
position: 'relative', position: 'relative',
@@ -40,11 +44,11 @@ export function panelTilePaperSx({
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
border: 'none', border: 'none',
boxShadow: 'none', borderRadius: PANEL_TILE_BORDER_RADIUS,
...(tileBg ? { bgcolor: tileBg } : {}), ...(tileBg ? { bgcolor: tileBg } : {}),
...(pending ...(pending && elevationShadow
? { ? {
boxShadow: `inset 0 0 0 ${PENDING_EDIT_RING_PX}px ${PENDING_EDIT_BORDER}`, boxShadow: `inset 0 0 0 ${PENDING_EDIT_RING_PX}px ${PENDING_EDIT_BORDER}, ${elevationShadow}`,
} }
: {}), : {}),
...sx, ...sx,