Compare commits

...

11 Commits

  1. 1
      docker-compose.yml
  2. 11
      frontend/src/global_styles/content/user-content/_figure.sass
  3. 4
      frontend/src/global_styles/content/user-content/_image.sass
  4. 2
      frontend/src/global_styles/content/user-content/_table.sass
  5. 10
      frontend/src/global_styles/content/user-content/_typography.sass
  6. 6
      frontend/src/vendor/ckeditor/ckeditor.js
  7. 2
      frontend/src/vendor/ckeditor/ckeditor.js.map
  8. 2
      spec/features/wysiwyg/custom_css_classes_spec.rb

@ -84,6 +84,7 @@ services:
command: "npm run serve"
volumes:
- ".:/home/dev/openproject"
- "../commonmark-ckeditor-build/build/:/home/dev/openproject/frontend/src/vendor/ckeditor/"
ports:
- "4200:4200"
environment:

@ -7,6 +7,7 @@
width: 100%
max-width: 100%
position: relative
break-inside: avoid
@include styled-scroll-bar
@ -32,14 +33,14 @@
flex-shrink: 1
width: 100%
display: flex
justify-content: center
justify-content: flex-start
overflow: auto
max-height: 100%
&--description
flex-basis: auto
flex-grow: 1
flex-shrink: 0
padding: 0.75rem
width: 100%
max-width: 100%
text-align: center
&.table
display: flex !important

@ -1,3 +1,7 @@
.op-uc-image
max-width: 100%;
max-height: 100%;
// Needed to override built-in ckeditor styles
@at-root .op-uc-container .image &
margin: 0

@ -14,8 +14,8 @@
&--cell
text-align: left
min-width: 3em;
padding: 0.75rem
word-break: break-all
&:not(:last-child):not([colspan])
border-right: 1px solid rgba(0, 0, 0, 0.1)

@ -19,6 +19,16 @@
&:hover .op-uc-link_permalink
display: inline-flex
.op-uc-h1,
.op-uc-h2,
.op-uc-h3
margin-bottom: 0.5rem
border-bottom: 1px solid #dadada
.op-uc-container_reduced-headings
border-bottom: none
margin-bottom: 0
.op-uc-h1
font-size: var(--op-uc-heading-base)
.op-uc-h2

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -112,7 +112,7 @@ describe 'Wysiwyg paragraphs in lists behavior (Regression #28765)',
it 'custom classes are placed correctly' do
editor.in_editor do |container, editable|
expect(editable).to have_css('p.op-uc-p', count: 5)
expect(editable).to have_css('p.op-uc-p', count: 6)
expect(editable).to have_css('h1.op-uc-h1', count: 1)
expect(editable).to have_css('h2.op-uc-h2', count: 1)
expect(editable).to have_css('h3.op-uc-h3', count: 1)

Loading…
Cancel
Save