Skip to content
代码片段 群组 项目
未验证 提交 f0d240d6 编辑于 作者: Chad Lavimoniere's avatar Chad Lavimoniere 提交者: GitLab
浏览文件

Fix layout of suggestion management buttons on mobile

Changelog: fixed
上级 e2494796
No related branches found
No related tags found
无相关合并请求
...@@ -137,7 +137,9 @@ export default { ...@@ -137,7 +137,9 @@ export default {
</script> </script>
<template> <template>
<div class="md-suggestion-header border-bottom-0 gl-px-4 gl-py-3"> <div
class="md-suggestion-header border-bottom-0 gl-flex-col gl-items-start gl-gap-3 gl-px-4 gl-py-3 sm:gl-flex-row sm:gl-flex-wrap"
>
<div class="js-suggestion-diff-header gl-font-bold"> <div class="js-suggestion-diff-header gl-font-bold">
{{ __('Suggested change') }} {{ __('Suggested change') }}
<a v-if="helpPagePath" :href="helpPagePath" :aria-label="__('Help')" class="js-help-btn"> <a v-if="helpPagePath" :href="helpPagePath" :aria-label="__('Help')" class="js-help-btn">
...@@ -155,10 +157,10 @@ export default { ...@@ -155,10 +157,10 @@ export default {
<gl-loading-icon size="sm" class="gl-mr-3 gl-items-center gl-justify-center" /> <gl-loading-icon size="sm" class="gl-mr-3 gl-items-center gl-justify-center" />
<span>{{ applyingSuggestionsMessage }}</span> <span>{{ applyingSuggestionsMessage }}</span>
</div> </div>
<div v-else-if="isLoggedIn" class="gl-flex gl-items-center"> <div v-else-if="isLoggedIn" class="gl-flex gl-flex-wrap gl-items-center gl-gap-3">
<div v-if="isBatched"> <div v-if="isBatched">
<gl-button <gl-button
class="btn-inverted js-remove-from-batch-btn btn-grouped" class="btn-inverted js-remove-from-batch-btn"
:disabled="isApplying" :disabled="isApplying"
size="small" size="small"
@click="removeSuggestionFromBatch" @click="removeSuggestionFromBatch"
...@@ -168,7 +170,7 @@ export default { ...@@ -168,7 +170,7 @@ export default {
</div> </div>
<div v-else-if="!isDisableButton && suggestionsCount > 1"> <div v-else-if="!isDisableButton && suggestionsCount > 1">
<gl-button <gl-button
class="btn-inverted js-add-to-batch-btn btn-grouped" class="btn-inverted js-add-to-batch-btn"
data-testid="add-suggestion-batch-button" data-testid="add-suggestion-batch-button"
:disabled="isDisableButton" :disabled="isDisableButton"
size="small" size="small"
...@@ -184,7 +186,6 @@ export default { ...@@ -184,7 +186,6 @@ export default {
:default-commit-message="defaultCommitMessage" :default-commit-message="defaultCommitMessage"
:batch-suggestions-count="batchSuggestionsCount" :batch-suggestions-count="batchSuggestionsCount"
:error-message="applySuggestionErrorMessage" :error-message="applySuggestionErrorMessage"
class="gl-ml-3"
@apply="apply" @apply="apply"
/> />
</div> </div>
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册