Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

fix table header styles

Behrokh Satarnejad6fd1335b3955
diff --git a/frontend/src/global_styles/content/editor/_ckeditor.sass b/frontend/src/global_styles/content/editor/_ckeditor.sass
index cfada40abf9..0d25389ae8d 100644
--- a/frontend/src/global_styles/content/editor/_ckeditor.sass
+++ b/frontend/src/global_styles/content/editor/_ckeditor.sass
@@ -6,6 +6,9 @@
&.ck-editor__editable_inline
padding-left: 2px !important
+ .ck-content .table table th
+ @include table-header-styles
+
// Wrapper for full text element
ckeditor-augmented-textarea .op-ckeditor--wrapper
margin-bottom: 2rem
@@ -41,10 +44,6 @@ ckeditor-augmented-textarea .op-ckeditor--wrapper
th[style^="width:"]
word-break: break-all
- .table table th
- border-color: var(--borderColor-default) !important
- background-color: var(--bgColor-muted) !important
-
.ck .ck-widget.op-ckeditor--code-block
// Display content as pre
white-space: pre-wrap
@@ -129,3 +128,5 @@ ckeditor-augmented-textarea .op-ckeditor--wrapper
.ck-icon_inherit-color
path
fill: var(--body-font-color) !important
+
+
diff --git a/frontend/src/global_styles/content/user-content/_table.sass b/frontend/src/global_styles/content/user-content/_table.sass
index 85a55ec3d9f..4680ed9df77 100644
--- a/frontend/src/global_styles/content/user-content/_table.sass
+++ b/frontend/src/global_styles/content/user-content/_table.sass
@@ -26,7 +26,7 @@
background: rgba(26, 103, 163, 0.05)
&_head
- background: var(--bgColor-muted)
+ @include table-header-styles
border-bottom: 1px solid var(--borderColor-default)
background-clip: padding-box
diff --git a/frontend/src/global_styles/openproject/_mixins.sass b/frontend/src/global_styles/openproject/_mixins.sass
index 5f30cc22ba1..417b35e020f 100644
--- a/frontend/src/global_styles/openproject/_mixins.sass
+++ b/frontend/src/global_styles/openproject/_mixins.sass
@@ -365,3 +365,7 @@ $scrollbar-size: 10px
display: table
&:after
clear: both
+
+@mixin table-header-styles
+ border-color: var(--borderColor-default)
+ background-color: var(--bgColor-muted)