Skip to content

Commit

Permalink
fix: table is now showing properly in preview and post lists (#669)
Browse files Browse the repository at this point in the history
* fix: table is now showing properly in preview and post lists

* refactor: added paragon color code
  • Loading branch information
sundasnoreen12 authored Feb 23, 2024
1 parent ac17fd7 commit ddb6c96
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/PostPreviewPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const PostPreviewPanel = ({
<>
{showPreviewPane && (
<div
className={`w-100 p-2 bg-light-200 rounded box-shadow-down-1 post-preview ${isPost ? 'mt-2 mb-5' : 'my-3'}`}
className={`w-100 p-2 bg-light-200 rounded box-shadow-down-1 post-preview overflow-auto ${isPost ? 'mt-2 mb-5' : 'my-3'}`}
style={{ minHeight: '200px', wordBreak: 'break-word' }}
>
<IconButton
Expand Down
2 changes: 1 addition & 1 deletion src/discussions/discussions-home/DiscussionContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const DiscussionContent = () => {
const postEditorVisible = useSelector((state) => state.threads.postEditorVisible);

return (
<div className="d-flex bg-light-400 flex-column w-75 w-xs-100 w-xl-75 align-items-center">
<div className="d-flex bg-light-400 flex-column w-75 w-xs-100 w-xl-75 align-items-center overflow-auto">
<div className="d-flex flex-column w-100">
<Suspense fallback={(<Spinner />)}>
<Routes>
Expand Down
4 changes: 2 additions & 2 deletions src/discussions/posts/post/Post.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const Post = ({ handleAddResponseButton }) => {

return (
<div
className="d-flex flex-column w-100 mw-100 post-card-comment"
className="d-flex flex-column w-100 mw-100 post-card-comment overflow-auto"
data-testid={`post-${postId}`}
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
tabIndex="0"
Expand Down Expand Up @@ -184,7 +184,7 @@ const Post = ({ handleAddResponseButton }) => {
title={title}
/>
<div className="d-flex mt-14px text-break font-style text-primary-500">
<HTMLLoader htmlNode={renderedBody} componentId="post" cssClassName="html-loader" testId={postId} />
<HTMLLoader htmlNode={renderedBody} componentId="post" cssClassName="html-loader w-100" testId={postId} />
</div>
{(topicContext || topic) && (
<div
Expand Down
6 changes: 6 additions & 0 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -571,3 +571,9 @@ code {
.content-unavailable-desktop {
width: 32.188rem !important;
}

th, td {
border: 1px dashed $gray-200;
padding: 0.4rem;
white-space: nowrap;
}

0 comments on commit ddb6c96

Please sign in to comment.