Skip to content

Commit

Permalink
fix: update box-shadow to inset for context menu when focusing on…
Browse files Browse the repository at this point in the history
… textarea in `Custom Instructions` dialog

- Adjusted box-shadow to inset for context menu ([role='dialog'] actually) when focusing on textarea in the "Custom Instructions" dialog

Changes summary:
    - Updated the box-shadow to inset for the context menu ([role='dialog']) when the textarea is focused in the "Custom Instructions" dialog for improved visual clarity.
  • Loading branch information
itsmartashub committed Feb 12, 2024
1 parent 71335a7 commit 3a9d8af
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 39 deletions.
15 changes: 13 additions & 2 deletions extension-dev/firefox-mv2/content.4a18726a.js

Large diffs are not rendered by default.

122 changes: 91 additions & 31 deletions extension-dev/firefox-mv2/sass.faed8373.css

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
},
"homepage": "https://github.com/itsmartashub/GPThemes/",
"scripts": {
"clean_dev": "rimraf .parcel-cache extension-dev",
"clean_prod": "rimraf .parcel-cache extension-prod",
"clean_zips": "rimraf extension-zips",
"clean-dev": "rimraf .parcel-cache extension-dev",
"clean-prod": "rimraf .parcel-cache extension-prod",
"clean-zips": "rimraf extension-zips",
"dev": "parcel watch src/manifests/chrome/manifest.json --host localhost --dist-dir extension-dev/chromium",
"dev_ff": "parcel watch src/manifests/firefox-mv2/manifest.json --host localhost --dist-dir extension-dev/firefox-mv2",
"dev-ff": "parcel watch src/manifests/firefox-mv2/manifest.json --host localhost --dist-dir extension-dev/firefox-mv2",
"build": "parcel build src/manifests/chrome/manifest.json --dist-dir extension-prod/gpthemes-chromium --no-source-maps",
"build_ff": "parcel build src/manifests/firefox-mv2/manifest.json --dist-dir extension-prod/gpthemes-firefox-mv2 --no-source-maps",
"build-ff": "parcel build src/manifests/firefox-mv2/manifest.json --dist-dir extension-prod/gpthemes-firefox-mv2 --no-source-maps",
"zip": "node ./scripts/zip.js",
"build_all": "npm run clean_prod && npm run build && npm run build_ff && npm run zip"
"build-all": "npm run clean-prod && npm run build && npm run build-ff && npm run zip"
},
"author": "itsmarta",
"keywords": [
Expand Down
9 changes: 9 additions & 0 deletions src/sass/elements/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ div[data-radix-popper-content-wrapper] {
z-index: calc(var(--z-modal) + 50) !important;
// z-index: 200 !important;

/* "Custom Instructions" dialog */
&:has([role='dialog']) {
/* "Custom Instructions" dialog context menu visible on textarea focus */
[role='dialog'] {
--box-shadow: var(--box-shadow-contextmenu) !important;
// box-shadow: var(--box-shadow-contextmenu) !important;
}
}

/* Mora not role=menu da ne bih selektovala i onaj contextmenu u sidebar kad se klikne na prompt listitem 3 dots za opcije i div[data-radix-popper-content-wrapper]:has([role='tooltip']) da ne bih selektovala tooltip */
&:not(
div[data-radix-popper-content-wrapper]:has(div[role='menu']),
Expand Down

0 comments on commit 3a9d8af

Please sign in to comment.