Skip to content

Commit b571dfc

Browse files
committed
Moved will-change from header buttons div to buttons to support WSB one, tweaked margins
1 parent d7d6d0e commit b571dfc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

bravegpt/greasemonkey/bravegpt.user.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.3.3.2
151+
// @version 2025.3.3.3
152152
// @license MIT
153153
// @icon https://assets.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0
154154
// @icon64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0
@@ -2155,12 +2155,12 @@
21552155
-o-transition: var(--transition) ; -ms-transition: var(--transition) }`
21562156
+ '.kudoai a { color: #aaa ; text-decoration: none !important }'
21572157
+ `.kudoai a:hover { color: ${ env.ui.app.scheme == 'dark' ? 'white' : 'black' }}`
2158-
+ `#${app.slug}-header-btns { position: relative ; bottom: 3px ; float: right ;
2159-
${ !config.fgAnimationsDisabled ? 'will-change: transform' : '' }}`
2158+
+ `#${app.slug}-header-btns { position: relative ; bottom: 3px ; float: right }`
21602159
+ `.${app.slug}-header-btn {`
21612160
+ 'float: right ; cursor: pointer ; position: relative ; top: 4px ;'
21622161
+ `${ env.ui.app.scheme == 'dark' ? 'fill: white ; stroke: white'
21632162
: 'fill: #adadad ; stroke: #adadad' };` // color
2163+
+ ( !config.fgAnimationsDisabled ? 'will-change: transform ;' : '' )
21642164
+ 'transition: var(--btn-transition) ;'
21652165
+ '-webkit-transition: var(--btn-transition) ; -moz-transition: var(--btn-transition) ;'
21662166
+ '-o-transition: var(--btn-transition) ; -ms-transition: var(--btn-transition) }'
@@ -3717,15 +3717,15 @@
37173717
// Create/append Settings button
37183718
const settingsBtn = dom.create.elem('btn',
37193719
{ id: `${app.slug}-settings-btn`, class: `${app.slug}-header-btn` })
3720-
settingsBtn.style.margin = '0 9.5px 0 1px' // position
3720+
settingsBtn.style.margin = '0 11.5px 0 3px' // position
37213721
settingsBtn.append(icons.sliders.create()) ; headerBtnsDiv.append(settingsBtn)
37223722

37233723
// Create/append Font Size button
37243724
if (answer != 'standby') {
37253725
var fontSizeBtn = dom.create.elem('btn',
37263726
{ id: `${app.slug}-font-size-btn`, class: `${app.slug}-header-btn app-hover-only` })
37273727
var fontSizeSVG = icons.fontSize.create()
3728-
fontSizeBtn.style.margin = '1px 10px 0 2px' // position
3728+
fontSizeBtn.style.margin = '1px 10px 0 1px' // position
37293729
fontSizeBtn.append(fontSizeSVG) ; headerBtnsDiv.append(fontSizeBtn)
37303730
}
37313731

@@ -3734,14 +3734,14 @@
37343734
var pinBtn = dom.create.elem('btn',
37353735
{ id: `${app.slug}-pin-btn`, class: `${app.slug}-header-btn app-hover-only` })
37363736
var pinSVG = icons.pin.create()
3737-
pinBtn.style.margin = '1px 9px 0 0' // position
3737+
pinBtn.style.margin = '1px 8px 0 0' // position
37383738
pinBtn.append(pinSVG) ; headerBtnsDiv.append(pinBtn)
37393739

37403740
// Create/append Wider Sidebar button
37413741
var wsbBtn = dom.create.elem('btn',
37423742
{ id: `${app.slug}-wsb-btn`, class: `${app.slug}-header-btn app-hover-only anchored-hidden` })
37433743
var wsbSVG = icons.widescreen.create()
3744-
wsbBtn.style.margin = '0.151em 11px 0 0' // position
3744+
wsbBtn.style.margin = '2px 12px 0 0' // position
37453745
wsbBtn.append(wsbSVG) ; headerBtnsDiv.append(wsbBtn)
37463746

37473747
// Create/append Expand/Shrink button

0 commit comments

Comments
 (0)