+9
-2
src/index.html
+9
-2
src/index.html
···
159
159
font-size: 0.6875rem;
160
160
}
161
161
162
+
.viewer-shortcut {
163
+
display: none;
164
+
}
165
+
162
166
.form-section {
163
167
margin-bottom: 2rem;
164
168
}
···
285
289
}
286
290
287
291
.table-section {
288
-
margin-top: 3rem;
292
+
margin-top: 0;
289
293
}
290
294
291
295
.table-controls {
···
420
424
</section>
421
425
422
426
<section class="table-section">
427
+
<div class="shortcut viewer-shortcut">
428
+
<kbd>cmd+k</kbd> focus • <kbd>cmd+/</kbd> search • <kbd>cmd+l</kbd> logout
429
+
</div>
423
430
<h2 class="table-header">
424
431
<span>// existing urls</span>
425
432
</h2>
···
607
614
608
615
function applyViewerMode() {
609
616
if (userRole === 'viewer') {
610
-
// Hide the shorten form
611
617
document.querySelector('.form-section').style.display = 'none';
618
+
document.querySelector('.viewer-shortcut').style.display = 'block';
612
619
}
613
620
}
614
621