AI made playwright tests + add them to the github.
This commit is contained in:
@@ -268,10 +268,6 @@ html {
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
||||
@view-transition {
|
||||
navigation: auto;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
@@ -4342,6 +4338,9 @@ body.sb-collapsed .sb-collapse-btn i {
|
||||
position: relative;
|
||||
transition: background 0.14s, color 0.14s;
|
||||
}
|
||||
.sb-link.hidden {
|
||||
display: none;
|
||||
}
|
||||
.sb-link:hover {
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
color: #e2e8f0;
|
||||
@@ -4826,6 +4825,9 @@ body.topbar-compact #role-badge {
|
||||
white-space: nowrap;
|
||||
transition: background 0.15s, color 0.15s, border-color 0.15s;
|
||||
}
|
||||
.nav-dd-group-btn.hidden {
|
||||
display: none;
|
||||
}
|
||||
.nav-dd-group-btn:hover {
|
||||
background: rgba(51, 65, 85, 0.7);
|
||||
color: #e2e8f0;
|
||||
|
||||
@@ -190,16 +190,20 @@ if (host) {
|
||||
}
|
||||
|
||||
applyAdaptiveNavLayout();
|
||||
return user;
|
||||
} catch (err) {
|
||||
console.error("Failed to load user:", err);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
let currentUserPromise = Promise.resolve(null);
|
||||
if (refs.usernameDisplay && refs.roleBadge) {
|
||||
loadCurrentUser();
|
||||
currentUserPromise = loadCurrentUser();
|
||||
}
|
||||
|
||||
import("./chat-widget.js").then((chatWidget) => {
|
||||
Promise.all([currentUserPromise, import("./chat-widget.js")]).then(([user, chatWidget]) => {
|
||||
if (!user?.permissions?.includes("chat:write")) return;
|
||||
runWithoutPageTracking(() => {
|
||||
chatWidget.init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user