From 31fef02d6b942d484ed6ea6ad45b7a9ca9991b6a Mon Sep 17 00:00:00 2001 From: PTCMode <1044871170@qq.com> Date: Sat, 14 Dec 2024 01:51:09 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E4=B8=B4=E6=97=B6=E8=A7=A3=E5=86=B3firefox=E4=B8=8B=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E8=AF=8D=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98=E7=9A=84?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- styles/extensions/firefox-fix/manifest.json | 8 +++++++ styles/extensions/firefox-fix/style.less | 26 +++++++++++++++++++++ styles/extensions/firefox-fix/style.min.css | 1 + 3 files changed, 35 insertions(+) create mode 100644 styles/extensions/firefox-fix/manifest.json create mode 100644 styles/extensions/firefox-fix/style.less create mode 100644 styles/extensions/firefox-fix/style.min.css diff --git a/styles/extensions/firefox-fix/manifest.json b/styles/extensions/firefox-fix/manifest.json new file mode 100644 index 0000000..04ceae3 --- /dev/null +++ b/styles/extensions/firefox-fix/manifest.json @@ -0,0 +1,8 @@ +{ + "name": "Temporary fix for issues caused by css in Firefox.", + "i18n": { + "zh_CN": "临时修复Firefox中css导致的问题" + }, + "author": "PTCMode", + "type": "enhance" +} \ No newline at end of file diff --git a/styles/extensions/firefox-fix/style.less b/styles/extensions/firefox-fix/style.less new file mode 100644 index 0000000..7e2935c --- /dev/null +++ b/styles/extensions/firefox-fix/style.less @@ -0,0 +1,26 @@ +.physton-prompt { + .prompt-tags { + .prompt-tags-list { + .prompt-tag { + .prompt-tag-main { + --pp-pt-dsb-ptl-pt-promptTagMain-width: calc(100% + 4px); + .prompt-tag-edit { + --pp-pt-dsb-ptl-pt-ptm-promptTagEdit-width: calc(100% + 8px); + .prompt-tag-value { + --pp-pt-dsb-ptl-pt-ptm-pte-promptTagValue-width: calc(100% - 8px); + .character { + --pp-pt-dsb-ptl-pt-ptm-pte-ptv-character-white-space: nowrap; + } + } + .input-tag-edit { + --pp-pt-dsb-ptl-pt-ptm-pte-inputTagEdit-max-width: calc(100% - 8px); + } + .btn-tag-delete { + --pp-pt-dsb-ptl-pt-ptm-pte-btnTagDelete-width: 100%; + } + } + } + } + } + } +} diff --git a/styles/extensions/firefox-fix/style.min.css b/styles/extensions/firefox-fix/style.min.css new file mode 100644 index 0000000..1bdf10c --- /dev/null +++ b/styles/extensions/firefox-fix/style.min.css @@ -0,0 +1 @@ +.physton-prompt{.prompt-tags{.prompt-tags-list{.prompt-tag{.prompt-tag-main{--pp-pt-dsb-ptl-pt-promptTagMain-width:calc(100%+4px);.prompt-tag-edit{--pp-pt-dsb-ptl-pt-ptm-promptTagEdit-width:calc(100%+8px);.prompt-tag-value{--pp-pt-dsb-ptl-pt-ptm-pte-promptTagValue-width:calc(100%-8px);.character{--pp-pt-dsb-ptl-pt-ptm-pte-ptv-character-white-space:nowrap;}}.input-tag-edit{--pp-pt-dsb-ptl-pt-ptm-pte-inputTagEdit-max-width:calc(100%-8px);}.btn-tag-delete{--pp-pt-dsb-ptl-pt-ptm-pte-btnTagDelete-width:100%;}}}}}}} \ No newline at end of file