mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-01-26 11:19:55 +00:00
[fix] 添加一个临时解决firefox下提示词显示问题的样式方案
This commit is contained in:
8
styles/extensions/firefox-fix/manifest.json
Normal file
8
styles/extensions/firefox-fix/manifest.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"name": "Temporary fix for issues caused by css in Firefox.",
|
||||||
|
"i18n": {
|
||||||
|
"zh_CN": "临时修复Firefox中css导致的问题"
|
||||||
|
},
|
||||||
|
"author": "PTCMode",
|
||||||
|
"type": "enhance"
|
||||||
|
}
|
||||||
26
styles/extensions/firefox-fix/style.less
Normal file
26
styles/extensions/firefox-fix/style.less
Normal file
@@ -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%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1
styles/extensions/firefox-fix/style.min.css
vendored
Normal file
1
styles/extensions/firefox-fix/style.min.css
vendored
Normal file
@@ -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%;}}}}}}}
|
||||||
Reference in New Issue
Block a user