Commit 659f5859 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'kp-fix-filtered-search-mobile-layout' into 'master'

Fix Filtered Search bar layout on small screens

See merge request gitlab-org/gitlab!34061
parents de90940e 7acd9c41
...@@ -221,7 +221,7 @@ export default { ...@@ -221,7 +221,7 @@ export default {
</script> </script>
<template> <template>
<div class="vue-filtered-search-bar-container d-flex"> <div class="vue-filtered-search-bar-container d-md-flex">
<gl-filtered-search <gl-filtered-search
v-model="filterValue" v-model="filterValue"
:placeholder="searchInputPlaceholder" :placeholder="searchInputPlaceholder"
...@@ -230,8 +230,8 @@ export default { ...@@ -230,8 +230,8 @@ export default {
class="flex-grow-1" class="flex-grow-1"
@submit="handleFilterSubmit" @submit="handleFilterSubmit"
/> />
<gl-button-group class="ml-2"> <gl-button-group class="sort-dropdown-container d-flex">
<gl-dropdown :text="selectedSortOption.title" :right="true"> <gl-dropdown :text="selectedSortOption.title" :right="true" class="w-100">
<gl-dropdown-item <gl-dropdown-item
v-for="sortBy in sortOptions" v-for="sortBy in sortOptions"
:key="sortBy.id" :key="sortBy.id"
...@@ -245,6 +245,7 @@ export default { ...@@ -245,6 +245,7 @@ export default {
v-gl-tooltip v-gl-tooltip
:title="sortDirectionTooltip" :title="sortDirectionTooltip"
:icon="sortDirectionIcon" :icon="sortDirectionIcon"
class="flex-shrink-1"
@click="handleSortDirectionClick" @click="handleSortDirectionClick"
/> />
</gl-button-group> </gl-button-group>
......
...@@ -449,3 +449,17 @@ ...@@ -449,3 +449,17 @@
font-size: 13px; font-size: 13px;
} }
} }
.vue-filtered-search-bar-container {
@include media-breakpoint-up(md) {
.sort-dropdown-container {
margin-left: 10px;
}
}
@include media-breakpoint-down(sm) {
.sort-dropdown-container {
margin-top: 10px;
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment