Commit 7e391a51 authored by Savas Vedova's avatar Savas Vedova

Merge branch '301143-improve-frequent-items-style-flexibility' into 'master'

Improve frequent_items style flexibility

See merge request gitlab-org/gitlab!60855
parents 7ab25364 f759338f
...@@ -100,7 +100,7 @@ export default { ...@@ -100,7 +100,7 @@ export default {
</script> </script>
<template> <template>
<div> <div class="gl-display-flex gl-flex-direction-column gl-flex-align-items-stretch gl-h-full">
<frequent-items-search-input :namespace="namespace" /> <frequent-items-search-input :namespace="namespace" />
<gl-loading-icon <gl-loading-icon
v-if="isLoadingItems" v-if="isLoadingItems"
......
...@@ -59,7 +59,11 @@ export default { ...@@ -59,7 +59,11 @@ export default {
<template> <template>
<div class="frequent-items-list-container"> <div class="frequent-items-list-container">
<ul ref="frequentItemsList" class="list-unstyled"> <ul ref="frequentItemsList" class="list-unstyled">
<li v-if="isListEmpty" :class="{ 'section-failure': isFetchFailed }" class="section-empty"> <li
v-if="isListEmpty"
:class="{ 'section-failure': isFetchFailed }"
class="section-empty gl-mb-3"
>
{{ listEmptyMessage }} {{ listEmptyMessage }}
</li> </li>
<frequent-items-list-item <frequent-items-list-item
......
...@@ -853,7 +853,7 @@ header.header-content .dropdown-menu.frequent-items-dropdown-menu { ...@@ -853,7 +853,7 @@ header.header-content .dropdown-menu.frequent-items-dropdown-menu {
.frequent-items-dropdown-sidebar, .frequent-items-dropdown-sidebar,
.frequent-items-dropdown-content { .frequent-items-dropdown-content {
padding: 8px 0; @include gl-pt-3;
} }
.loading-animation { .loading-animation {
...@@ -895,7 +895,6 @@ header.header-content .dropdown-menu.frequent-items-dropdown-menu { ...@@ -895,7 +895,6 @@ header.header-content .dropdown-menu.frequent-items-dropdown-menu {
} }
.frequent-items-list-container { .frequent-items-list-container {
height: 304px;
padding: 8px 0; padding: 8px 0;
overflow-y: auto; overflow-y: auto;
......
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