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

[#51698] added specific css for grid-area containing client ids

Eric Schubert5d4beab186f4
diff --git a/modules/storages/app/components/storages/admin/oauth_application_info_component.html.erb b/modules/storages/app/components/storages/admin/oauth_application_info_component.html.erb
index e8362189ff1..7c19168c623 100644
--- a/modules/storages/app/components/storages/admin/oauth_application_info_component.html.erb
+++ b/modules/storages/app/components/storages/admin/oauth_application_info_component.html.erb
@@ -5,7 +5,11 @@
concat(configuration_check_label_for(:openproject_oauth_application_configured))
end
- grid.with_area(:description, tag: :div, color: :subtle, test_selector: 'storage-openproject-oauth-application-description') do
+ grid.with_area(:description,
+ classes: 'break-word',
+ tag: :div,
+ color: :subtle,
+ test_selector: 'storage-openproject-oauth-application-description') do
render(Primer::Beta::Text.new) { openproject_oauth_client_description }
end
diff --git a/modules/storages/app/components/storages/admin/oauth_client_info_component.html.erb b/modules/storages/app/components/storages/admin/oauth_client_info_component.html.erb
index 1444be2c928..38109db911e 100644
--- a/modules/storages/app/components/storages/admin/oauth_client_info_component.html.erb
+++ b/modules/storages/app/components/storages/admin/oauth_client_info_component.html.erb
@@ -9,7 +9,11 @@
concat(configuration_check_label_for(:storage_oauth_client_configured))
end
- grid.with_area(:description, tag: :div, color: :subtle, test_selector: 'storage-oauth-client-id-description') do
+ grid.with_area(:description,
+ classes: 'break-word',
+ tag: :div,
+ color: :subtle,
+ test_selector: 'storage-oauth-client-id-description') do
render(Primer::Beta::Text.new) { provider_oauth_client_description }
end
diff --git a/modules/storages/app/components/storages/admin/storage_view_component.sass b/modules/storages/app/components/storages/admin/storage_view_component.sass
index 9567cf3d246..ed846195317 100644
--- a/modules/storages/app/components/storages/admin/storage_view_component.sass
+++ b/modules/storages/app/components/storages/admin/storage_view_component.sass
@@ -2,3 +2,7 @@
display: grid
grid-template-columns: 3fr 1fr
grid-template-areas: "item icon-button" "description icon-button"
+
+.break-word
+ overflow: hidden
+ word-wrap: break-word