diff --git a/tiatoolbox/data/visualization/templates/index.html b/tiatoolbox/data/visualization/templates/index.html
index bff5a71df..041330870 100644
--- a/tiatoolbox/data/visualization/templates/index.html
+++ b/tiatoolbox/data/visualization/templates/index.html
@@ -101,12 +101,59 @@
left: 6pt;
top: 116pt;
}
+ .patient-id {
+ position: absolute;
+ top: 10px;
+ left: 50%;
+ transform: translateX(-50%);
+ z-index: 2000;
+ background: #fff;
+ padding: 10px 24px;
+ border-radius: 8px;
+ box-shadow: 0 2px 8px rgba(0,0,0,0.10);
+ font-weight: bold;
+ font-size: 1.2em;
+ color: #333;
+ border: 1px solid #eee;
+ }
+ .icon-btn {
+ background: #fff;
+ border: 1px solid #eee;
+ border-radius: 50%;
+ width: 44px;
+ height: 44px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 1.5em;
+ color: #333;
+ box-shadow: 0 2px 8px rgba(0,0,0,0.10);
+ cursor: pointer;
+ transition: background 0.2s, color 0.2s;
+ outline: none;
+ position: relative;
+ }
+ .icon-btn:hover {
+ background: #f0f0f0;
+ color: #007bff;
+ }
+ .icon-btn:active {
+ background: #e0e0e0;
+ }
{{ title }}
+ {% if patient_id %}
+ Patient ID: {{ patient_id }}
+ {% endif %}
+
+
+
+
+
diff --git a/tiatoolbox/visualization/bokeh_app/templates/index.html b/tiatoolbox/visualization/bokeh_app/templates/index.html
index 863fd3a1f..9eceed4f0 100644
--- a/tiatoolbox/visualization/bokeh_app/templates/index.html
+++ b/tiatoolbox/visualization/bokeh_app/templates/index.html
@@ -33,7 +33,19 @@
.hidden {
display: none;
}
-
+ .patient-id {
+ position: absolute;
+ top: 10px;
+ left: 10px;
+ z-index: 1000;
+ background: #fff;
+ padding: 8px 16px;
+ border-radius: 6px;
+ box-shadow: 0 2px 8px rgba(0,0,0,0.08);
+ font-weight: bold;
+ font-size: 1.1em;
+ color: #333;
+ }
.popup {
position: absolute;
top: 30%;
@@ -45,7 +57,6 @@
justify-content: center;
align-items: center;
}
-
.popup-content {
background-color: white;
padding: 10px;
@@ -59,7 +70,6 @@
height: 75%;
overflow: auto;
}
-
.popup-header {
cursor: move;
user-select: none;
@@ -67,12 +77,14 @@
-moz-user-select: none;
-ms-user-select: none;
}
-
{% endblock %}
{% block contents %}
+{% if patient_id %}
+ Patient ID: {{ patient_id }}
+{% endif %}