Skip to content

Commit 23967f4

Browse files
style: Reduce query result table font size to 75%
Makes tables more compact in notebook displays. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent c93f1c4 commit 23967f4

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.secrets/database.password

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tutorial

.secrets/database.user

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
root

datajoint.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"database": {
3+
"host": "127.0.0.1",
4+
"port": 3306
5+
},
6+
"safemode": false,
7+
"loglevel": "WARNING"
8+
}

src/datajoint/preview.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ def get_html_display_value(tup, name, idx):
121121
border-collapse:collapse;
122122
}
123123
.Table th{
124-
background: #A0A0A0; color: #ffffff; padding:4px; border:#f0e0e0 1px solid;
125-
font-weight: normal; font-family: monospace; font-size: 100%;
124+
background: #A0A0A0; color: #ffffff; padding:2px 4px; border:#f0e0e0 1px solid;
125+
font-weight: normal; font-family: monospace; font-size: 75%;
126126
}
127127
.Table td{
128-
padding:4px; border:#f0e0e0 1px solid; font-size:100%;
128+
padding:2px 4px; border:#f0e0e0 1px solid; font-size: 75%;
129129
}
130130
.Table tr:nth-child(odd){
131131
background: #ffffff;

0 commit comments

Comments
 (0)