Commit 8bf266b5 authored by Andrei Stoicescu's avatar Andrei Stoicescu

Fix panel "more actions" button layout

 - fix width
 - fix horizontal alignment of icon
parent 9781a96a
...@@ -138,6 +138,11 @@ export default { ...@@ -138,6 +138,11 @@ export default {
</script> </script>
<template> <template>
<!--
This component should be replaced with a variant developed
as part of https://gitlab.com/gitlab-org/gitlab-ui/-/issues/936
The variant will create a dropdown with an icon, no text and no caret
-->
<gl-new-dropdown <gl-new-dropdown
v-gl-tooltip v-gl-tooltip
data-testid="actions-menu" data-testid="actions-menu"
......
...@@ -394,15 +394,21 @@ export default { ...@@ -394,15 +394,21 @@ export default {
data-qa-selector="prometheus_graph_widgets" data-qa-selector="prometheus_graph_widgets"
> >
<div data-testid="dropdown-wrapper" class="d-flex align-items-center"> <div data-testid="dropdown-wrapper" class="d-flex align-items-center">
<!--
This component should be replaced with a variant developed
as part of https://gitlab.com/gitlab-org/gitlab-ui/-/issues/936
The variant will create a dropdown with an icon, no text and no caret
-->
<gl-dropdown <gl-dropdown
v-gl-tooltip v-gl-tooltip
toggle-class="shadow-none border-0" toggle-class="gl-px-3!"
no-caret
data-qa-selector="prometheus_widgets_dropdown" data-qa-selector="prometheus_widgets_dropdown"
right right
:title="__('More actions')" :title="__('More actions')"
> >
<template slot="button-content"> <template #button-content>
<gl-icon name="ellipsis_v" class="dropdown-icon text-secondary" /> <gl-icon class="gl-mr-0!" name="ellipsis_v" />
</template> </template>
<gl-dropdown-item <gl-dropdown-item
v-if="expandBtnAvailable" v-if="expandBtnAvailable"
......
---
title: Fix panel "more actions" button layout
merge_request: 39534
author:
type: fixed
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