Skip to content

Commit 3d07c5f

Browse files
committed
Fix recent queries css
1 parent d7a7dfd commit 3d07c5f

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

debug-db-base/src/main/assets/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function renderQueryHistoryMenu() {
104104
for (var i = 0; i < history.length; i++) {
105105
menu.append(
106106
$("<li>").append(
107-
$("<a>", { href: "#", "class": "addb-query-history-item" }).text(history[i]).data("query", history[i])
107+
$("<a>", { href: "#", "class": "addb-query-history-item", title: history[i] }).text(history[i]).data("query", history[i])
108108
)
109109
);
110110
}

debug-db-base/src/main/assets/custom.css

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,25 @@ body.addb-sidebar-compact #table-list .list-group-item {
6161
}
6262

6363
#addb-query-history-menu {
64-
max-width: 720px;
64+
min-width: 30vw;
65+
width: 40vw;
66+
max-width: 70vw;
67+
max-height: 160px;
68+
overflow-y: auto;
69+
overflow-x: hidden;
70+
padding: 0;
6571
}
6672

6773
#addb-query-history-menu > li > a {
68-
white-space: normal;
69-
word-break: break-word;
7074
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
7175
font-size: 12px;
76+
white-space: nowrap;
77+
overflow: hidden;
78+
text-overflow: ellipsis;
79+
box-sizing: border-box;
80+
height: 32px;
81+
line-height: 20px;
82+
padding: 6px 12px;
7283
}
7384

7485
@font-face {

0 commit comments

Comments
 (0)