u
This commit is contained in:
@@ -40,7 +40,7 @@ function ArticlePhoto() {
|
|||||||
height: 200,
|
height: 200,
|
||||||
maxWidth: '100%',
|
maxWidth: '100%',
|
||||||
bgcolor: 'action.hover',
|
bgcolor: 'action.hover',
|
||||||
borderRadius: 1,
|
borderRadius: 2,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ class EditablePanelTileBase extends Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Paper
|
<Paper
|
||||||
elevation={0}
|
elevation={4}
|
||||||
sx={panelTilePaperSx({
|
sx={panelTilePaperSx({
|
||||||
wide,
|
wide,
|
||||||
sx,
|
sx,
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class PanelTileBase extends Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Paper
|
<Paper
|
||||||
elevation={0}
|
elevation={4}
|
||||||
sx={panelTilePaperSx({
|
sx={panelTilePaperSx({
|
||||||
wide,
|
wide,
|
||||||
sx,
|
sx,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user