From c044aa4207a3b89b1ac51d24e4506bad60aaa49c Mon Sep 17 00:00:00 2001 From: Jose Ivan Vargas <jvargas@gitlab.com> Date: Fri, 28 Jun 2024 13:31:49 -0600 Subject: [PATCH] Change gl-white-space-pre-line class This is part of the Tailwind migration --- .../javascripts/comment_templates/components/list_item.vue | 2 +- .../vue_shared/components/markdown/suggestions.vue | 2 +- .../instructions/runner_aws_instructions.vue | 2 +- .../instructions/runner_cli_instructions.vue | 4 ++-- .../components/policy_editor/branch_selector_modal.vue | 2 +- .../components/__snapshots__/list_item_spec.js.snap | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/comment_templates/components/list_item.vue b/app/assets/javascripts/comment_templates/components/list_item.vue index eaf7b1cfde32b..6b29321b47874 100644 --- a/app/assets/javascripts/comment_templates/components/list_item.vue +++ b/app/assets/javascripts/comment_templates/components/list_item.vue @@ -94,7 +94,7 @@ export default { </gl-tooltip> </div> </div> - <div class="gl-font-monospace gl-white-space-pre-line gl-font-sm -gl-mt-5"> + <div class="gl-font-monospace gl-whitespace-pre-line gl-font-sm -gl-mt-5"> {{ template.content }} </div> <gl-modal diff --git a/app/assets/javascripts/vue_shared/components/markdown/suggestions.vue b/app/assets/javascripts/vue_shared/components/markdown/suggestions.vue index ded04bd24d49f..f71b18c398936 100644 --- a/app/assets/javascripts/vue_shared/components/markdown/suggestions.vue +++ b/app/assets/javascripts/vue_shared/components/markdown/suggestions.vue @@ -177,7 +177,7 @@ export default { <template> <div> - <div class="flash-container js-suggestions-flash gl-white-space-pre-line"></div> + <div class="flash-container js-suggestions-flash gl-whitespace-pre-line"></div> <div v-show="isRendered" ref="container" diff --git a/app/assets/javascripts/vue_shared/components/runner_instructions/instructions/runner_aws_instructions.vue b/app/assets/javascripts/vue_shared/components/runner_instructions/instructions/runner_aws_instructions.vue index 8de160983292a..0d049e9e0b1d1 100644 --- a/app/assets/javascripts/vue_shared/components/runner_instructions/instructions/runner_aws_instructions.vue +++ b/app/assets/javascripts/vue_shared/components/runner_instructions/instructions/runner_aws_instructions.vue @@ -132,7 +132,7 @@ export default { <template v-if="registrationToken"> <h5 class="gl-mb-3">{{ $options.i18n.runnerRegistrationToken }}</h5> <div class="gl-display-flex"> - <pre class="gl-bg-gray gl-flex-grow-1 gl-white-space-pre-line">{{ registrationToken }}</pre> + <pre class="gl-bg-gray gl-flex-grow-1 gl-whitespace-pre-line">{{ registrationToken }}</pre> <modal-copy-button :title="$options.i18n.copyInstructions" :text="registrationToken" diff --git a/app/assets/javascripts/vue_shared/components/runner_instructions/instructions/runner_cli_instructions.vue b/app/assets/javascripts/vue_shared/components/runner_instructions/instructions/runner_cli_instructions.vue index 9685ec5058b50..24ff101f34e08 100644 --- a/app/assets/javascripts/vue_shared/components/runner_instructions/instructions/runner_cli_instructions.vue +++ b/app/assets/javascripts/vue_shared/components/runner_instructions/instructions/runner_cli_instructions.vue @@ -126,7 +126,7 @@ export default { <template v-if="instructions"> <div class="gl-display-flex"> <pre - class="gl-bg-gray gl-flex-grow-1 gl-white-space-pre-line" + class="gl-bg-gray gl-flex-grow-1 gl-whitespace-pre-line" data-testid="binary-instructions" >{{ instructions.installInstructions }}</pre > @@ -141,7 +141,7 @@ export default { <h5 class="gl-mb-3">{{ $options.i18n.registerRunnerCommand }}</h5> <div class="gl-display-flex"> <pre - class="gl-bg-gray gl-flex-grow-1 gl-white-space-pre-line" + class="gl-bg-gray gl-flex-grow-1 gl-whitespace-pre-line" data-testid="register-command" >{{ registerInstructionsWithToken }}</pre > diff --git a/ee/app/assets/javascripts/security_orchestration/components/policy_editor/branch_selector_modal.vue b/ee/app/assets/javascripts/security_orchestration/components/policy_editor/branch_selector_modal.vue index 1e63ab3ce3166..53c2d79d1db1b 100644 --- a/ee/app/assets/javascripts/security_orchestration/components/policy_editor/branch_selector_modal.vue +++ b/ee/app/assets/javascripts/security_orchestration/components/policy_editor/branch_selector_modal.vue @@ -221,7 +221,7 @@ export default { <p v-if="hasAsyncValidationError" data-testid="async-validation-error" - class="gl-my-2 gl-text-red-500 gl-white-space-pre-line" + class="gl-my-2 gl-text-red-500 gl-whitespace-pre-line" > <gl-sprintf :message="asyncValidationErrors"> <template #bold="{ content }"> diff --git a/spec/frontend/comment_templates/components/__snapshots__/list_item_spec.js.snap b/spec/frontend/comment_templates/components/__snapshots__/list_item_spec.js.snap index 672ac64c43bed..fcb9608346908 100644 --- a/spec/frontend/comment_templates/components/__snapshots__/list_item_spec.js.snap +++ b/spec/frontend/comment_templates/components/__snapshots__/list_item_spec.js.snap @@ -111,7 +111,7 @@ exports[`Comment templates list item component renders list item 1`] = ` </div> </div> <div - class="-gl-mt-5 gl-font-monospace gl-font-sm gl-white-space-pre-line" + class="-gl-mt-5 gl-font-monospace gl-font-sm gl-whitespace-pre-line" > /assign_reviewer </div> -- GitLab