[fix] 添加一个临时解决firefox下提示词显示问题的样式方案

This commit is contained in:
PTCMode
2024-12-14 01:51:09 +08:00
parent d69645e6a6
commit 31fef02d6b
3 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
{
"name": "Temporary fix for issues caused by css in Firefox.",
"i18n": {
"zh_CN": "临时修复Firefox中css导致的问题"
},
"author": "PTCMode",
"type": "enhance"
}

View 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%;
}
}
}
}
}
}
}

View 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%;}}}}}}}