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

Change styling of new splitView to have rounded corners and add rounded box around the notification center content as well

Henriette Darge67742c53d4e4
diff --git a/app/components/work_packages/details/tab_component.html.erb b/app/components/work_packages/details/tab_component.html.erb
index 3ee5de0932c..dbe0306c5cd 100644
--- a/app/components/work_packages/details/tab_component.html.erb
+++ b/app/components/work_packages/details/tab_component.html.erb
@@ -1,7 +1,7 @@
<%=
flex_layout(classes: "op-work-package-details-tab-component") do |flex|
flex.with_column(flex: 1, classes: "op-work-package-details-tab-component--tabs") do
- render(Primer::Alpha::UnderlineNav.new(align: :left, label: "Tabs")) do |component|
+ render(Primer::Alpha::UnderlineNav.new(align: :left, label: "Tabs", classes: "op-primer-adjustment--UnderlineNav_spaciousLeft")) do |component|
menu_items.each do |node|
component.with_tab(selected: @tab == node.name,
href: url_for(node.url),
diff --git a/app/components/work_packages/details/tab_component.sass b/app/components/work_packages/details/tab_component.sass
index a6ca5d70f90..b824867ad16 100644
--- a/app/components/work_packages/details/tab_component.sass
+++ b/app/components/work_packages/details/tab_component.sass
@@ -11,3 +11,6 @@
// This is one of the ugliest hacks I ever had to write. Please remove that as soon as the actions are part of the Splitscreen header
padding-bottom: 7px
border-bottom: 1px solid var(--borderColor-muted)
+
+ &:last-of-type
+ padding-right: 8px
diff --git a/app/components/work_packages/split_view_component.sass b/app/components/work_packages/split_view_component.sass
index 7ba29b5b211..fe30fe1317e 100644
--- a/app/components/work_packages/split_view_component.sass
+++ b/app/components/work_packages/split_view_component.sass
@@ -1,10 +1,10 @@
.op-work-package-split-view
height: 100%
+ width: 580px
justify-content: space-around
border-left: 1px solid var(--borderColor-muted)
border-top: 1px solid var(--borderColor-muted)
+ border-right: 1px solid var(--borderColor-muted)
- // border-top-left-radius: 8px
- // border-top-right-radius: 8px
- // border-right: 1px solid var(--borderColor-muted)
- // margin-right: 20px
+ border-top-left-radius: var(--borderRadius-medium)
+ border-top-right-radius: var(--borderRadius-medium)
diff --git a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.sass b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.sass
index 0b6c9471b47..ec266dfd20e 100644
--- a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.sass
+++ b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.sass
@@ -7,6 +7,12 @@
&--content
height: 100%
+ border: 1px solid var(--borderColor-muted)
+ border-radius: var(--borderRadius-medium)
+ border-bottom-left-radius: 0
+ border-bottom-right-radius: 0
+ // Do not remove easily. Otherwise the children will overlap the rounded corners
+ overflow: hidden
&_empty
display: flex
diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass
index 34597722e1e..1460d7b26be 100644
--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass
+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass
@@ -18,7 +18,6 @@ $subject-font-size: 14px
padding: 15px 10px
font-size: 0.9rem
border-top: 1px solid var(--borderColor-default)
- border-radius: 2px
height: $ian-height
&:hover
diff --git a/frontend/src/global_styles/layout/_base.sass b/frontend/src/global_styles/layout/_base.sass
index de5029c31be..b91fe9cc225 100644
--- a/frontend/src/global_styles/layout/_base.sass
+++ b/frontend/src/global_styles/layout/_base.sass
@@ -119,7 +119,7 @@ $left-space: 20px
overflow-x: hidden
// Special rules for pages that still follow the old layout and render everything inside the content-body
- .accessibility-helper ~ &
+ .accessibility-helper + &
padding-top: $top-space
&:last-child
padding-right: $right-space
@@ -130,7 +130,7 @@ $left-space: 20px
#content-bodyRight
grid-area: bodyRight
- padding: 0
+ padding: 0 $right-space 0 0
overflow: auto
@include styled-scroll-bar
diff --git a/frontend/src/global_styles/layout/work_packages/_details_view.sass b/frontend/src/global_styles/layout/work_packages/_details_view.sass
index 8d7ae4f7a69..8c5f3c1965c 100644
--- a/frontend/src/global_styles/layout/work_packages/_details_view.sass
+++ b/frontend/src/global_styles/layout/work_packages/_details_view.sass
@@ -62,7 +62,7 @@ body.router--work-packages-partitioned-split-view-new
height: 55px
width: 100%
background: var(--bgColor-muted)
- border: 1px solid var(--borderColor-default)
+ border-top: 1px solid var(--borderColor-muted)
padding: 0 1rem 10px
@media print
diff --git a/frontend/src/global_styles/openproject/_mixins.sass b/frontend/src/global_styles/openproject/_mixins.sass
index bda4f37d773..53d7629fa71 100644
--- a/frontend/src/global_styles/openproject/_mixins.sass
+++ b/frontend/src/global_styles/openproject/_mixins.sass
@@ -262,6 +262,7 @@ $scrollbar-size: 10px
margin-left: 20px
@mixin extended-content--right
+ #content-bodyRight,
#content-body,
#content-header
padding-right: 0
@@ -271,6 +272,10 @@ $scrollbar-size: 10px
.work-packages--filters-optional-container
margin-right: 15px
+@mixin space-between-content-and-split-screen
+ #content-bodyRight > *
+ margin-left: 12px
+
@mixin modifying--placeholder
border: 1px dashed var(--accent-color)
pointer-events: none
diff --git a/frontend/src/global_styles/openproject/_notifications.sass b/frontend/src/global_styles/openproject/_notifications.sass
index 5e2917c9094..6dac88f6cbd 100644
--- a/frontend/src/global_styles/openproject/_notifications.sass
+++ b/frontend/src/global_styles/openproject/_notifications.sass
@@ -27,5 +27,8 @@
//++
.controller-notifications
+ @include extended-content--bottom
+ @include space-between-content-and-split-screen
+
#content
height: 100%
diff --git a/frontend/src/global_styles/primer/_overrides.sass b/frontend/src/global_styles/primer/_overrides.sass
index aad9e52b401..724edda0c42 100644
--- a/frontend/src/global_styles/primer/_overrides.sass
+++ b/frontend/src/global_styles/primer/_overrides.sass
@@ -52,6 +52,9 @@ action-menu
&-body
margin-left: 12px
+ &.op-primer-adjustment--UnderlineNav_spaciousLeft
+ padding-left: 12px
+
/* Remove margin-left: 2rem from Breadcrumbs */
#breadcrumb,
page-header,