dash-to-dock icon indicating copy to clipboard operation
dash-to-dock copied to clipboard

Unwanted gap / border / margin around dock

Open adatum opened this issue 3 years ago • 6 comments

On Fedora 34 (Gnome Shell 40) with dash-to-dock version 69 (thanks, at least it's working now!) there is a gap / border / margin around the dock so that it is not flush with the side edge of the screen. A similar margin exists for window distances to cause the auto-hide feature to activate.

Can this margin be reduced to zero? I did not find a setting which achieves this.

I find it much easier to move the cursor to the very edge of the screen to click on launcher icons instead of having to center more careful on the icon.

dash-to-dock-border

adatum avatar May 09 '21 00:05 adatum

I have a similar problem. In my case, the margin is much more pronounced. Where in the code is this value set? I can manually change it while awaiting a possible permanent fix.

Screenshot from 2021-08-28 23-39-13

cjkr avatar Aug 28 '21 20:08 cjkr

As a workaround you can edit the following file (the location is valid for a global install in Manjaro):

user@pc:~$ sudo vim /usr/share/gnome-shell/extensions/[email protected]/stylesheet.css

(Only showing the relevant lines)

line 4:
#dashtodockContainer.bottom #dash {
    padding-bottom: 0px;  /* 10px */
}

and to get rid of the gap completely:

line 19:
#dashtodockContainer.bottom.shrink #dash .dash-background {
    margin-bottom: 0px;  /* 1px */
}

Then simply open the Gnome Shell Extensions app and disable and enable Dash to Dock again.

macgeneral avatar Aug 30 '21 09:08 macgeneral

The issue is still relevant on gnome, though...

PSzczepanski1996 avatar Feb 23 '22 17:02 PSzczepanski1996

Just add a settings to change the floating margin in dock settings someone already did it maybe if you ask them to separate that work it gets merged

ryzendew avatar Feb 23 '22 17:02 ryzendew

After upgrading to v72 (19cc612 to be precise) I'm having this problem again... and @macgeneral's fix doesn not seem to work anymore (stylesheet.css has changed). Did anyone manage to adapt the fix?

ces42 avatar Aug 02 '22 08:08 ces42

If can be still useful to someone, in Zorin OS 16.3, the stylesheet sit in ~/.local/share/gnome-shell/extensions/[email protected]

With this option active: Screenshot from 2023-11-30 21-08-34

I edited the element #dashtodockContainer.dashtodock.bottom #dash at line 41, just play with css properties.

I think I cannot help more of this because I'm really a newnewnewnewnewnewbie with linux, I have just installed Zorin and, instead of trying to understand how linux works, I'm trying to customize the dock... 😆

globdug avatar Nov 30 '23 20:11 globdug