Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix table width #4380

Merged

Conversation

thecalcc
Copy link
Contributor

SDESK-7116

I didn't find the ticket specific to this issue but we can consider it a part of the general fixes for multi-line quote

@tomaskikutis
Copy link
Member

actual tables shouldn't be set to 100% by default. Add a config option so it's only applied to pull quote

@thecalcc
Copy link
Contributor Author

actual tables shouldn't be set to 100% by default. Add a config option so it's only applied to pull quote

Actually we don't need a config option since we already have className which we can check against whether it's a multi line quote or not

@tomaskikutis
Copy link
Member

Classnames are for styling and you shouldn't be using them for anything else. If I could, I would write a lint rule not allowing to compare a classname using === :D

Use a separate prop like fullWidth: boolean and keep classname decoupled.

@@ -53,6 +53,7 @@ describe('editor3.component.table-cell', () => {
it('should render', () => {
const wrapper = shallow(
<TableCell
fullWidth={{}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how are you passing an empty object where a boolean is required?

@thecalcc thecalcc merged commit 43f988f into superdesk:authoring-react-post-broadcasting Nov 16, 2023
6 checks passed
dzonidoo added a commit to dzonidoo/superdesk-client-core that referenced this pull request Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants