Skip to content

Commit

Permalink
Moved site notification style from updateTweaksStyle() to `updateAp…
Browse files Browse the repository at this point in the history
…pStyle()` ↞ [auto-sync from `adamlui/chatgpt-apps`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Jun 4, 2024
1 parent 1528068 commit 2e76f85
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions greasemonkey/duckduckgpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
// @description:zu Faka amaphawu ase-ChatGPT kuvaliwe i-DuckDuckGo Search (okwesikhashana ngu-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.6.4.6
// @version 2024.6.4.7
// @license MIT
// @icon https://media.ddgpt.com/images/icons/duckduckgpt/icon48.png?af89302
// @icon64 https://media.ddgpt.com/images/icons/duckduckgpt/icon64.png?af89302
Expand Down Expand Up @@ -815,6 +815,7 @@
+ '.ddgpt > pre ul { margin: -28px 0 -35px }' // reduce v-padding
+ '.ddgpt > pre ul > li { margin: -10px 0 0 1.2em ; list-style: inside }' ) // reduce v-padding, show bullets
+ '.katex-html { display: none } ' // hide unrendered math
+ '.chatgpt-notif { padding: 11px 15px 6px 12px !important }' // pad site notifications
+ '.chatgpt-modal > div { padding: 20px 25px 24px 25px !important }' // increase alert padding
+ '.chatgpt-modal h2 { margin: 0 ; padding: 0 ; font-weight: bold }' // shrink margin/padding around alert titles, force bold
+ '.chatgpt-modal p { margin: -8px 0 -9px 4px ; font-size: 1.55rem }' // position/size update alert msg
Expand All @@ -841,9 +842,6 @@
tweaksStyle.innerText = ( config.widerSidebar ? wsbStyles : '' )
+ ( config.stickySidebar && !isStandbyMode && answerIsLoaded ? ssbStyles : '' )

// Re-pad site notifications
tweaksStyle.innerText += '.chatgpt-notif { padding: 11px 15px 6px 12px !important }'

// Update <pre> max-height in Sticky Sidebar mode based on RQ visibility (for getShowReply()'s RQ show + menu RQ toggle)
const answerPre = document.querySelector('.ddgpt > pre'),
relatedQueries = document.querySelector('.related-queries'),
Expand Down

0 comments on commit 2e76f85

Please sign in to comment.