Skip to content

Commit 16ab0cc

Browse files
committed
fix: better styles
1 parent e1d89f2 commit 16ab0cc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/FixedHeightQuery/FixedHeightQuery.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,17 @@
1818

1919
// Target the ReactSyntaxHighlighter pre element
2020
pre {
21-
display: flex !important;
21+
display: box !important;
22+
-webkit-box-orient: vertical !important;
23+
-webkit-line-clamp: var(--line-clamp, 4) !important;
2224
overflow: hidden !important;
23-
align-items: center !important;
2425

2526
height: 100% !important;
2627
margin: 0 !important;
2728
padding: 8px !important;
2829

2930
white-space: pre-wrap !important;
31+
text-overflow: ellipsis !important;
3032
word-break: break-word !important;
3133
}
3234

src/containers/Tenant/Diagnostics/TopQueries/columns/columns.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const queryTextColumn: Column<KeyValueRow> = {
3333
header: QUERIES_COLUMNS_TITLES.QueryText,
3434
render: ({row}) => (
3535
<div className={b('query')}>
36-
<FixedHeightQuery value={row.QueryText?.toString()} lines={4} hasClipboardButton />
36+
<FixedHeightQuery value={row.QueryText?.toString()} lines={3} hasClipboardButton />
3737
</div>
3838
),
3939
width: 500,

0 commit comments

Comments
 (0)