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 some indentations

Behrokh Satarnejadaf1d6a9cb8b5
diff --git a/app/views/custom_styles/_interface.html.erb b/app/views/custom_styles/_interface.html.erb
index b5ef9a33e78..3f376d9fd9c 100644
--- a/app/views/custom_styles/_interface.html.erb
+++ b/app/views/custom_styles/_interface.html.erb
@@ -34,12 +34,13 @@
<%# Fill in the computed css variables in the inputs as their defaults %>
<%= nonced_javascript_tag do %>
var computedStyle = getComputedStyle(document.documentElement);
+
document
- .querySelectorAll('.design-color--variable-input')
- .forEach(function(el) {
- if (!el.value || el.value === '') {
- el.placeholder = computedStyle.getPropertyValue('--' + el.dataset.variableName).trim();
- }
- });
+ .querySelectorAll('.design-color--variable-input')
+ .forEach(function(el) {
+ if (!el.value || el.value === '') {
+ el.placeholder = computedStyle.getPropertyValue('--' + el.dataset.variableName).trim();
+ }
+ });
<% end %>
<% end %>