Tobias Brugger commited on
Commit
4336cb2
·
1 Parent(s): f61f640

add tooltip

Browse files
Files changed (1) hide show
  1. src/lib/DatasetViewer.svelte +59 -8
src/lib/DatasetViewer.svelte CHANGED
@@ -292,16 +292,30 @@
292
  <!-- Model Info Display -->
293
  {#if datasetConfig}
294
  <div class="dataset-model-info subtle">
295
- <span><strong>Scoring Model:</strong> {datasetConfig.scoring_model}</span>
 
 
 
 
 
 
 
 
296
  <span class="sep">|</span>
297
- <span
298
- ><strong>Synthesis Model:</strong> {datasetConfig.synthesis_model}</span
299
- >
 
 
 
 
 
 
300
  <span class="sep">|</span>
301
- <span
302
- ><strong>Last Updated:</strong>
303
- {datasetConfig.generation_date || "N/A"}</span
304
- >
305
  </div>
306
  {/if}
307
 
@@ -1049,4 +1063,41 @@
1049
  font-size: 1.1em;
1050
  margin: 0 0.5em;
1051
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1052
  </style>
 
292
  <!-- Model Info Display -->
293
  {#if datasetConfig}
294
  <div class="dataset-model-info subtle">
295
+ <span class="info-tooltip-inline">
296
+ <strong>Scoring Model:</strong>
297
+ {datasetConfig.scoring_model}
298
+ <span class="tooltip-content-inline">
299
+ <strong>Scoring Model</strong> is the model used to compute the equivalency
300
+ score between terms. It uses a language model to assess how closely terms
301
+ from different jurisdictions match in meaning.
302
+ </span>
303
+ </span>
304
  <span class="sep">|</span>
305
+ <span class="info-tooltip-inline">
306
+ <strong>Synthesis Model:</strong>
307
+ {datasetConfig.synthesis_model}
308
+ <span class="tooltip-content-inline">
309
+ <strong>Synthesis Model</strong> is the model used to synthesize comparative
310
+ law notes. Generative AI is used to assess and explain the similarities
311
+ and differences between terms from different jurisdictions.
312
+ </span>
313
+ </span>
314
  <span class="sep">|</span>
315
+ <span>
316
+ <strong>Last Updated:</strong>
317
+ {datasetConfig.generation_date || "N/A"}
318
+ </span>
319
  </div>
320
  {/if}
321
 
 
1063
  font-size: 1.1em;
1064
  margin: 0 0.5em;
1065
  }
1066
+ .info-tooltip-inline {
1067
+ position: relative;
1068
+ display: inline-flex;
1069
+ align-items: center;
1070
+ cursor: help;
1071
+ }
1072
+ .info-tooltip-inline strong {
1073
+ margin-right: 0.15em;
1074
+ }
1075
+ .info-tooltip-inline:hover .tooltip-content-inline {
1076
+ display: block;
1077
+ }
1078
+ .tooltip-content-inline {
1079
+ display: none;
1080
+ position: absolute;
1081
+ bottom: calc(100% + 8px);
1082
+ left: 0;
1083
+ background: #333;
1084
+ color: white;
1085
+ padding: 0.75rem 1rem;
1086
+ border-radius: 6px;
1087
+ font-size: 0.8rem;
1088
+ white-space: normal;
1089
+ z-index: 100;
1090
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
1091
+ text-align: left;
1092
+ min-width: 220px;
1093
+ max-width: 320px;
1094
+ }
1095
+ .tooltip-content-inline strong {
1096
+ display: block;
1097
+ font-size: 0.85rem;
1098
+ margin-bottom: 0.5rem;
1099
+ color: #fff;
1100
+ border-bottom: 1px solid #555;
1101
+ padding-bottom: 0.4rem;
1102
+ }
1103
  </style>