diff --git a/activityDb.js b/activityDb.js index 75d890b..64d1b06 100644 --- a/activityDb.js +++ b/activityDb.js @@ -84,10 +84,15 @@ db.exec(` agent_id INTEGER NOT NULL DEFAULT 1, name TEXT NOT NULL, image_data TEXT NOT NULL, + is_default INTEGER NOT NULL DEFAULT 0, created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')) ) `); +try { + db.exec(`ALTER TABLE user_signatures ADD COLUMN is_default INTEGER NOT NULL DEFAULT 0`); +} catch (_) {} + db.exec(` CREATE TABLE IF NOT EXISTS user_shapes ( id INTEGER PRIMARY KEY AUTOINCREMENT, diff --git a/public/css/style.css b/public/css/style.css index ff7f32b..465f942 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -2708,10 +2708,47 @@ body { .article-info-popover::before { content: ''; position: absolute; - top: -25px; - bottom: -25px; - left: -30px; - right: -80px; + top: -8px; + bottom: 0; + left: 0; + right: 0; background: transparent; pointer-events: auto; +} + +/* PDF.js Text Layer Styling per selezione testo pulita */ +.textLayer { + position: absolute; + text-align: initial; + left: 0; + top: 0; + right: 0; + bottom: 0; + overflow: hidden; + line-height: 1.0; + user-select: text; + -webkit-user-select: text; + -moz-user-select: text; +} + +.textLayer span, +.textLayer br { + color: transparent !important; + -webkit-text-fill-color: transparent !important; + position: absolute; + white-space: pre; + cursor: text; + transform-origin: 0% 0%; + border: none !important; + outline: none !important; + box-shadow: none !important; +} + +.textLayer ::selection, +.textLayer ::-moz-selection, +.textLayer span::selection, +.textLayer span::-moz-selection { + background: rgba(59, 130, 246, 0.35) !important; + color: transparent !important; + -webkit-text-fill-color: transparent !important; } \ No newline at end of file diff --git a/public/index.html b/public/index.html index 22719a5..cdb2931 100644 --- a/public/index.html +++ b/public/index.html @@ -112,6 +112,7 @@ Nuovo Ticket +