mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
Highlight current session
This commit is contained in:
parent
8db8ec3574
commit
199b68a964
@ -28,6 +28,9 @@ const UIWindowManageSessions = async function UIWindowManageSessions () {
|
||||
const SessionWidget = ({ session }) => {
|
||||
const el = document.createElement('div');
|
||||
el.classList.add('session-widget');
|
||||
if ( session.current ) {
|
||||
el.classList.add('current-session');
|
||||
}
|
||||
el.dataset.uuid = session.uuid;
|
||||
// '<pre>' +
|
||||
// JSON.stringify(session, null, 2) +
|
||||
|
@ -3738,6 +3738,10 @@ label {
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.current-session.session-widget {
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
|
||||
.session-widget-uuid {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
|
Loading…
Reference in New Issue
Block a user