Closed DinCahill closed 2 years ago
Something like this?
:not([dir='rtl']).gmail-desktop_compact-header
[style*='top:'][style*='left:'][style*='visibility:']
As you're only targeting style values, I'm not 100% sure if this is unique enough. Are there any other attributes or paths you could use?
As you're only targeting style values, I'm not 100% sure if this is unique enough. Are there any other attributes or paths you could use?
There are no other attributes. It has a single hardcoded Gmail class, so if we used that, the selector could just be :not([dir='rtl']).gmail-desktop_compact-header .tP
.
Thanks for explaining.
Let's use the Gmail class instead, although it's not good, but safer, because [style*='top:'][style*='left:'][style*='visibility:']
could also target another element with the same attributes.
The position of the Google Chat status dropdown is calculated in javascript. When compact header mode is enabled, it isn't positioned correctly, presumably because of the elements we've hidden.
They position it with the
top
andleft
properties, so I've usedtransform: translateX(-100px)
to apply a constant offset.Before:
After:
And when
<body dir='rtl'>
: