Commit 4363cc38 authored by Michel Engelen's avatar Michel Engelen Committed by Phil Hughes

hoverable area on collapsed sidebar icons

parent 9eb46764
...@@ -73,13 +73,14 @@ export default { ...@@ -73,13 +73,14 @@ export default {
<template> <template>
<div> <div>
<div class="sidebar-collapsed-icon" @click="onClickCollapsedIcon">
<span <span
v-tooltip v-tooltip
class="sidebar-collapsed-icon"
:title="notificationTooltip" :title="notificationTooltip"
data-container="body" data-container="body"
data-placement="left" data-placement="left"
data-boundary="viewport" data-boundary="viewport"
@click="onClickCollapsedIcon"
> >
<icon <icon
:name="notificationIcon" :name="notificationIcon"
...@@ -88,7 +89,6 @@ export default { ...@@ -88,7 +89,6 @@ export default {
class="sidebar-item-icon is-active" class="sidebar-item-icon is-active"
/> />
</span> </span>
</div>
<span class="issuable-header-text hide-collapsed float-left"> {{ __('Notifications') }} </span> <span class="issuable-header-text hide-collapsed float-left"> {{ __('Notifications') }} </span>
<toggle-button <toggle-button
ref="toggleButton" ref="toggleButton"
......
...@@ -390,7 +390,7 @@ ...@@ -390,7 +390,7 @@
.block { .block {
width: $gutter-collapsed-width - 2px; width: $gutter-collapsed-width - 2px;
padding: 15px 0 0; padding: 0;
border-bottom: 0; border-bottom: 0;
overflow: hidden; overflow: hidden;
...@@ -427,10 +427,13 @@ ...@@ -427,10 +427,13 @@
} }
.sidebar-collapsed-icon { .sidebar-collapsed-icon {
display: block; display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%; width: 100%;
height: $sidebar-toggle-height;
text-align: center; text-align: center;
margin-bottom: 10px;
color: $gl-text-color-secondary; color: $gl-text-color-secondary;
svg { svg {
...@@ -470,6 +473,16 @@ ...@@ -470,6 +473,16 @@
} }
.btn-clipboard { .btn-clipboard {
/*
This change should be temporary, because the DOM currently gets
generated from a ruby definition in `app/helpers/button_helper.rb`.
As soon as the `copy to clipboard` button will be transfered to
Vue this should be adjusted as well.
*/
flex: 1;
align-self: stretch;
padding: 0;
border: 0; border: 0;
background: transparent; background: transparent;
color: $gl-text-color-secondary; color: $gl-text-color-secondary;
...@@ -493,7 +506,6 @@ ...@@ -493,7 +506,6 @@
.sidebar-collapsed-user { .sidebar-collapsed-user {
padding-bottom: 0; padding-bottom: 0;
margin-bottom: 10px;
.author-link { .author-link {
padding-left: 0; padding-left: 0;
......
---
title: "Adjusted the clickable area of collapsed sidebar elements"
merge_request: 30974
author: Michel Engelen
type: changed
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