feat: prevent text selection on main pages

This commit is contained in:
2026-09-12 14:14:47 +02:00
parent 3793ee9f5b
commit fd545fb2a8
6 changed files with 27 additions and 1 deletions
+5
View File
@@ -50,6 +50,11 @@
/* Hover */ /* Hover */
/* ------------------------------------------------------------------ */ /* ------------------------------------------------------------------ */
.btn-primary:hover:not(:disabled) {
background: color-mix(in srgb, var(--accent-brand) 95%, white);
color: var(--text-primary);
}
.btn-ghost:hover:not(:disabled), .btn-ghost:hover:not(:disabled),
.btn-toggle:hover:not(:disabled) { .btn-toggle:hover:not(:disabled) {
background: var(--bg-raised); background: var(--bg-raised);
+3
View File
@@ -18,6 +18,9 @@
overflow: visible; overflow: visible;
transition: width var(--dur-base) var(--ease-standard); transition: width var(--dur-base) var(--ease-standard);
user-select: none;
-webkit-user-select: none;
} }
.sidebar-rail--expanded { .sidebar-rail--expanded {
+3
View File
@@ -150,6 +150,9 @@
(var(--space-3) * 2) + (var(--tab-height) * 0.5) + (var(--space-2) * 2) + 4ch + (var(--space-3) * 2) + (var(--tab-height) * 0.5) + (var(--space-2) * 2) + 4ch +
var(--tab-close-size) var(--tab-close-size)
); );
user-select: none;
-webkit-user-select: none;
} }
.tab:hover { .tab:hover {
@@ -5,6 +5,9 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
user-select: none;
-webkit-user-select: none;
} }
.connection-panel { .connection-panel {
+12
View File
@@ -24,3 +24,15 @@
margin-top: var(--space-2); margin-top: var(--space-2);
} }
.credits-page {
user-select: none;
-webkit-user-select: none;
}
.credits-page input,
.credits-page select,
.credits-page textarea {
user-select: text;
-webkit-user-select: text;
}
+1 -1
View File
@@ -5,7 +5,7 @@ import './CreditsPage.css';
function CreditsPage() { function CreditsPage() {
return ( return (
<Card> <Card className="credits-page">
<div className="credits-page__header"> <div className="credits-page__header">
<h1 className="credits-page__title">Credits</h1> <h1 className="credits-page__title">Credits</h1>
<p className="credits-page__subtitle"> <p className="credits-page__subtitle">