Skip to content

Commit efe4ad7

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
fix: GenAI Client(evals) - Change dataset visualization table to fixed to prevent horizontal expansion.
PiperOrigin-RevId: 826625630
1 parent e600277 commit efe4ad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vertexai/_genai/_evals_visualization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ def _get_inference_html(dataframe_json: str) -> str:
708708
body {{ font-family: 'Roboto', sans-serif; margin: 2em; background-color: #f8f9fa; color: #202124;}}
709709
.container {{ max-width: 95%; margin: 20px auto; padding: 20px; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }}
710710
h1 {{ color: #3c4043; border-bottom: 2px solid #4285F4; padding-bottom: 8px; }}
711-
table {{ border-collapse: collapse; width: 100%; }}
711+
table {{ border-collapse: collapse; width: 100%; table-layout: fixed; }}
712712
th, td {{ border: 1px solid #dadce0; padding: 12px; text-align: left; vertical-align: top; }}
713713
th {{ background-color: #f2f2f2; font-weight: 500;}}
714714
td > div {{ white-space: pre-wrap; word-wrap: break-word; max-height: 400px; overflow-y: auto; overflow-wrap: break-word; }}

0 commit comments

Comments
 (0)