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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
mobile adjustments following iteration made for the mobile concept
Jonas Jabarid7bd52b5bfdf
diff --git a/app/components/work_packages/activities_tab/index_component.html.erb b/app/components/work_packages/activities_tab/index_component.html.erbindex 3849b33359f..322eb20f6d2 100644--- a/app/components/work_packages/activities_tab/index_component.html.erb+++ b/app/components/work_packages/activities_tab/index_component.html.erb@@ -10,15 +10,33 @@))end- activties_tab_container.with_row(id: "journals-container", classes: "with-initial-input-compensation", data: { "work-packages--activities-tab--index-target": "journalsContainer" }) do- render(- WorkPackages::ActivitiesTab::Journals::IndexComponent.new(work_package:, filter:)- )- end- activties_tab_container.with_row(id: "input-container", mt: 3, pt: 2, pb: 2, pl: 3, pr: 2, border: :top, bg: :subtle) do- render(- WorkPackages::ActivitiesTab::Journals::NewComponent.new(work_package:)- )+ activties_tab_container.with_row(flex_layout: true) do |journals_wrapper_container|+ journals_wrapper_container.with_row(+ id: "journals-container",+ classes: "with-initial-input-compensation",+ data: { "work-packages--activities-tab--index-target": "journalsContainer" }+ ) do+ render(+ WorkPackages::ActivitiesTab::Journals::IndexComponent.new(work_package:, filter:)+ )+ end+ journals_wrapper_container.with_row(+ id: "input-container",+ classes: "sort-#{journal_sorting}", # css order attribute will take care of correct position+ mt: 3,+ mb: [3, nil, nil, nil, 0],+ pt: 2,+ pb: 2,+ pl: 3,+ pr: 2,+ border: [nil, nil, nil, nil, :top],+ border_radius: [2, nil, nil, nil, 0],+ bg: :subtle+ ) do+ render(+ WorkPackages::ActivitiesTab::Journals::NewComponent.new(work_package:)+ )+ endendendenddiff --git a/app/components/work_packages/activities_tab/index_component.sass b/app/components/work_packages/activities_tab/index_component.sassindex 1ad476c1f66..6a5a5d6e282 100644--- a/app/components/work_packages/activities_tab/index_component.sass+++ b/app/components/work_packages/activities_tab/index_component.sass@@ -3,14 +3,19 @@overflow-y: auto&.with-initial-input-compensationmargin-bottom: 75px // initial margin-bottom, will be increased by stimulus when opening ckeditor+ @media screen and (max-width: $breakpoint-xl)+ margin-bottom: 0&.with-input-compensationmargin-bottom: 190px+ @media screen and (max-width: $breakpoint-xl)+ margin-bottom: 0#input-container- position: absolute- min-height: 60px- bottom: 0- left: 0- right: 0- @media screen and (max-width: $breakpoint-md)- width: 100vw- margin-left: -15px+ @media screen and (min-width: $breakpoint-xl)+ position: absolute+ min-height: 60px+ bottom: 0+ left: 0+ right: 0+ @media screen and (max-width: $breakpoint-xl)+ &.sort-desc+ order: -1\ No newline at end of filediff --git a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.tsindex b21ccc94dcb..d356ba95a76 100644--- a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts@@ -94,10 +94,6 @@ export default class IndexController extends Controller {setFilterToOnlyChanges() { this.filterValue = 'only_changes'; }unsetFilter() { this.filterValue = ''; }- private getCkEditorElement():HTMLElement | null {- return this.formRowTarget.querySelectorAll('.document-editor__editable')[0] as HTMLElement;- }-private getCkEditorInstance():ICKEditorInstance | null {const AngularCkEditorElement = this.element.querySelector('opce-ckeditor-augmented-textarea');return AngularCkEditorElement ? jQuery(AngularCkEditorElement).data('editor') as ICKEditorInstance : null;@@ -155,6 +151,9 @@ export default class IndexController extends Controller {}private adjustJournalContainerMargin() {+ // don't do this on mobile screens+ // TODO: get rid of static width value and reach for a more CSS based solution+ if (window.innerWidth < 1279) { return; }this.journalsContainerTarget.style.marginBottom = `${this.formRowTarget.clientHeight + 40}px`;}@@ -172,9 +171,9 @@ export default class IndexController extends Controller {this.addEventListenersToCkEditorInstance();- const ckEditorElement = this.getCkEditorElement();- if (ckEditorElement) {- setTimeout(() => ckEditorElement.focus(), 10);+ const ckEditorInstance = this.getCkEditorInstance();+ if (ckEditorInstance) {+ setTimeout(() => ckEditorInstance.editing.view.focus(), 10);}}