Skip to content

Commit

Permalink
fix(theme): wrap end-of-lines spaces (#1775)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed Jul 8, 2022
1 parent acb7628 commit 0faf79e
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 48 deletions.
6 changes: 6 additions & 0 deletions .changeset/seven-timers-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@remirror/styles': patch
'@remirror/theme': patch
---

Set style `white-space` as `break-spaces` to wrap end-of-lines spaces.
8 changes: 0 additions & 8 deletions packages/remirror__styles/all.css
Original file line number Diff line number Diff line change
Expand Up @@ -594,14 +594,6 @@ button:active .remirror-menu-pane-shortcut,
position: relative;
}

.remirror-editor.ProseMirror[contenteditable='false'] {
white-space: normal;
}

.remirror-editor.ProseMirror[contenteditable='true'] {
white-space: pre-wrap;
}

.remirror-editor.ProseMirror hr {
border-color: #2e2e2e;
}
Expand Down
8 changes: 0 additions & 8 deletions packages/remirror__styles/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@
position: relative;
}

.remirror-editor.ProseMirror[contenteditable='false'] {
white-space: normal;
}

.remirror-editor.ProseMirror[contenteditable='true'] {
white-space: pre-wrap;
}

.remirror-editor.ProseMirror hr {
border-color: #2e2e2e;
}
Expand Down
8 changes: 0 additions & 8 deletions packages/remirror__styles/src/dom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -605,14 +605,6 @@ export const coreStyledCss: ReturnType<typeof css> = css`
position: relative;
}
.remirror-editor.ProseMirror[contenteditable='false'] {
white-space: normal;
}
.remirror-editor.ProseMirror[contenteditable='true'] {
white-space: pre-wrap;
}
.remirror-editor.ProseMirror hr {
border-color: #2e2e2e;
}
Expand Down
8 changes: 0 additions & 8 deletions packages/remirror__styles/src/emotion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -611,14 +611,6 @@ export const coreStyledCss: ReturnType<typeof css> = css`
position: relative;
}
.remirror-editor.ProseMirror[contenteditable='false'] {
white-space: normal;
}
.remirror-editor.ProseMirror[contenteditable='true'] {
white-space: pre-wrap;
}
.remirror-editor.ProseMirror hr {
border-color: #2e2e2e;
}
Expand Down
8 changes: 0 additions & 8 deletions packages/remirror__styles/src/styled-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -610,14 +610,6 @@ export const coreStyledCss: ReturnType<typeof css> = css`
position: relative;
}
.remirror-editor.ProseMirror[contenteditable='false'] {
white-space: normal;
}
.remirror-editor.ProseMirror[contenteditable='true'] {
white-space: pre-wrap;
}
.remirror-editor.ProseMirror hr {
border-color: #2e2e2e;
}
Expand Down
8 changes: 0 additions & 8 deletions packages/remirror__theme/src/core-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ export const EDITOR = css`
position: relative;
}
&[contenteditable='false'] {
white-space: normal;
}
&[contenteditable='true'] {
white-space: pre-wrap;
}
hr {
border-color: #2e2e2e;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* THIS FILE IS AUTO GENERATED!
*
* Run `pnpm -w generate:website-examples` to regenerate this file.
*/

// @ts-nocheck

import React from 'react';
import CodeBlock from '@theme/CodeBlock';
import BrowserOnly from '@docusaurus/BrowserOnly';
import ComponentSource from '!!raw-loader!../../../packages/storybook-react/stories/extension-entity-reference/scroll-to-highlight.tsx';

import { StoryExample } from '../../src/components/story-example-component';

const ExampleComponent = (): JSX.Element => {
const story = (
<BrowserOnly>
{() => {
const ComponentStory = require('../../../packages/storybook-react/stories/extension-entity-reference/scroll-to-highlight').default
return <ComponentStory/>
}}
</BrowserOnly>
);
const source = <CodeBlock className='language-tsx'>{ComponentSource}</CodeBlock>;

return <StoryExample story={story} source={source} />;
};

export default ExampleComponent;

1 comment on commit 0faf79e

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Please sign in to comment.