Skip to content

Commit

Permalink
fix: column name overlaps with type (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
jczhong84 authored Mar 23, 2023
1 parent 5ee43b0 commit dc7ceaf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions querybook/server/datasources/metastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ def get_column_by_table(table_id, column_name, with_table=False):


@register("/column/<int:column_id>/", methods=["GET"])
@limiter.limit("120 per minute")
def get_column(column_id, with_table=False):
column = logic.get_column_by_id(column_id)
verify_data_table_permission(column.table_id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
display: flex;
flex-direction: row;
align-items: center;
gap: 12px;

.column-name {
width: 180px;
margin-right: 12px;
min-width: 160px;
}

.column-type {
width: 100%;
flex: 1;
word-break: break-all;
}
}
Expand Down
6 changes: 3 additions & 3 deletions querybook/webapp/ui/KeyContentDisplay/KeyContentDisplay.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
flex-direction: row;
margin-bottom: 8px;
cursor: default;
gap: 12px;

.KeyContentDisplay-key {
width: 180px;
margin-right: 12px;
min-width: 160px;
color: var(--text-light);
font-size: var(--text-size);
font-weight: var(--light-bold-font);
}
.KeyContentDisplay-content {
width: 100%;
flex: 1;
align-self: center;

&.right-align {
Expand Down

0 comments on commit dc7ceaf

Please sign in to comment.