Skip to content

Commit

Permalink
fixed previewBlock styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Spiral-Memory committed Feb 27, 2024
1 parent 9fe12a7 commit 68623df
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const MessageGenericPreview = (props, className = '', style = {}) => {
padding: 0.75rem;
border: 1px solid #ccc;
border-radius: 5px;
background-color: #cbced1;
background-color: #eff0f1;
`;
return (
<div
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { css } from '@emotion/react';
import useComponentOverrides from '../../theme/useComponentOverrides';

const MessageGenericPreviewFooter = ({
Expand All @@ -10,9 +11,13 @@ const MessageGenericPreviewFooter = ({
const { classNames, styleOverrides } = useComponentOverrides(
'MessageGenericPreviewFooter'
);
const MessageGenericPreviewFooterCss = css`
padding: 0.5rem 0;
`;

return (
<div
css={MessageGenericPreviewFooterCss}
className={`ec-message-generic-preview__footer ${className} ${classNames}`}
style={{ ...style, ...styleOverrides }}
{...props}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ const Item = ({ block: element, surfaceRenderer: parser, index }) => {
useComponentOverrides('ContextBlockItem');
const ContextBlockCss = css`
display: inline-block;
padding: 0 0.75rem;
font-size: 0.8rem;
color: #ffffff3f;
color: #3d3d3d;
margin: -0.25rem;
`;
const renderedElement = parser.renderContextBlockElement(element, index);
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/components/uiKit/blocks/ContextBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const ContextBlock = ({ className, block, surfaceRenderer }) => {
>
{itemElements.map((element, i) => (
<Item
style={{ color: '#ccc' }}
key={i}
block={element}
surfaceRenderer={surfaceRenderer}
Expand Down

0 comments on commit 68623df

Please sign in to comment.