Keep extension progress visible while scrolling

This commit is contained in:
DESKTOP-KSVGT20\shkim
2026-05-02 01:53:44 +09:00
parent 5566988cd1
commit bf60f3357d
+13 -2
View File
@@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name ChatGPT to Suno Prompt Copier // @name ChatGPT to Suno Prompt Copier
// @namespace local.suno-helper // @namespace local.suno-helper
// @version 0.9.4 // @version 0.9.5
// @description Copy structured ChatGPT song prompt versions into Suno fields. // @description Copy structured ChatGPT song prompt versions into Suno fields.
// @author local // @author local
// @match https://chatgpt.com/* // @match https://chatgpt.com/*
@@ -30,7 +30,7 @@
(function () { (function () {
"use strict"; "use strict";
const SCRIPT_VERSION = "0.9.4"; const SCRIPT_VERSION = "0.9.5";
const STORAGE_KEY = "chatgptSunoPromptSlots"; const STORAGE_KEY = "chatgptSunoPromptSlots";
const SLOT_COUNT = 2; const SLOT_COUNT = 2;
const isChatGPT = location.hostname.includes("chatgpt.com") || location.hostname.includes("chat.openai.com"); const isChatGPT = location.hostname.includes("chatgpt.com") || location.hostname.includes("chat.openai.com");
@@ -187,6 +187,11 @@
margin-top: 9px; margin-top: 9px;
color: #b7c9ff; color: #b7c9ff;
font-size: 12px; font-size: 12px;
position: sticky;
bottom: 0;
z-index: 2;
padding: 8px 0 2px;
background: rgba(16, 18, 24, 0.96);
} }
.cgs-field-list { .cgs-field-list {
display: grid; display: grid;
@@ -250,6 +255,12 @@
margin-top: 8px; margin-top: 8px;
display: grid; display: grid;
gap: 4px; gap: 4px;
position: sticky;
top: 0;
z-index: 3;
padding: 6px 0 8px;
background: rgba(16, 18, 24, 0.98);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
} }
.cgs-progress-label { .cgs-progress-label {
color: #b7c9ff; color: #b7c9ff;