@roxyapi/ui 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5757,7 +5757,6 @@ var RoxyTransitsTable = class extends LitElement23 {
5757
5757
  <th scope="col">Orb</th>
5758
5758
  <th scope="col">Status</th>
5759
5759
  <th scope="col">Strength</th>
5760
- <th scope="col" class="interp">Interpretation</th>
5761
5760
  </tr>
5762
5761
  </thead>
5763
5762
  <tbody>
@@ -5766,26 +5765,28 @@ var RoxyTransitsTable = class extends LitElement23 {
5766
5765
  const nGlyph = PLANET_GLYPH[capitalize(a.natalPlanet)] ?? "";
5767
5766
  const natureClass = `nature-${(a.nature ?? "").toLowerCase()}`;
5768
5767
  const summary = a.interpretation?.summary ?? "";
5769
- const truncated = summary.length > 120 ? `${summary.slice(0, 120)}...` : summary;
5770
- return html23`<tr>
5771
- <td>
5772
- <div class="arrow-cell">
5773
- <span class="glyph" aria-hidden="true">${tGlyph}</span>
5774
- ${a.transitPlanet}
5775
- </div>
5776
- </td>
5777
- <td>
5778
- <div class="arrow-cell">
5779
- <span class="glyph" aria-hidden="true">${nGlyph}</span>
5780
- ${a.natalPlanet}
5781
- </div>
5782
- </td>
5783
- <td class=${natureClass}>${(a.type ?? "").toLowerCase()}</td>
5784
- <td class="num">${formatNumber(a.orb, 2)}</td>
5785
- <td>${a.isApplying ? "Applying" : "Separating"}</td>
5786
- <td class="num">${formatNumber(a.strength, 1)}</td>
5787
- <td class="interp" title=${summary}>${truncated}</td>
5788
- </tr>`;
5768
+ const rowClass = summary ? "aspect-row" : "aspect-row no-interp";
5769
+ return html23`<tr class=${rowClass}>
5770
+ <td>
5771
+ <div class="arrow-cell">
5772
+ <span class="glyph" aria-hidden="true">${tGlyph}</span>
5773
+ ${a.transitPlanet}
5774
+ </div>
5775
+ </td>
5776
+ <td>
5777
+ <div class="arrow-cell">
5778
+ <span class="glyph" aria-hidden="true">${nGlyph}</span>
5779
+ ${a.natalPlanet}
5780
+ </div>
5781
+ </td>
5782
+ <td class=${natureClass}>${(a.type ?? "").toLowerCase()}</td>
5783
+ <td class="num">${formatNumber(a.orb, 2)}</td>
5784
+ <td>${a.isApplying ? "Applying" : "Separating"}</td>
5785
+ <td class="num">${formatNumber(a.strength, 1)}</td>
5786
+ </tr>
5787
+ ${summary ? html23`<tr class="interp-row">
5788
+ <td colspan="6">${summary}</td>
5789
+ </tr>` : nothing24}`;
5789
5790
  })}
5790
5791
  </tbody>
5791
5792
  </table>`;
@@ -5940,19 +5941,23 @@ RoxyTransitsTable.styles = [
5940
5941
  white-space: nowrap;
5941
5942
  }
5942
5943
 
5943
- .interp {
5944
+ .interp-row td {
5945
+ padding-top: 0;
5946
+ padding-bottom: var(--roxy-space-sm, 0.5rem);
5947
+ border-bottom: 1px solid var(--roxy-border, #e4e4e7);
5944
5948
  color: var(--roxy-secondary, #475569);
5945
5949
  font-size: var(--roxy-text-xs, 0.75rem);
5946
- max-width: 22rem;
5947
- white-space: nowrap;
5948
- overflow: hidden;
5949
- text-overflow: ellipsis;
5950
+ line-height: 1.45;
5950
5951
  }
5951
5952
 
5952
- @container (max-width: 600px) {
5953
- .interp {
5954
- display: none;
5955
- }
5953
+ .aspect-row td {
5954
+ border-bottom: none;
5955
+ padding-bottom: 4px;
5956
+ }
5957
+
5958
+ .aspect-row.no-interp td {
5959
+ border-bottom: 1px solid var(--roxy-border, #e4e4e7);
5960
+ padding-bottom: var(--roxy-space-sm, 0.5rem);
5956
5961
  }
5957
5962
 
5958
5963
  .overflow-scroll {
@@ -6630,7 +6635,7 @@ var ROXY_COMPONENTS = [
6630
6635
  ];
6631
6636
 
6632
6637
  // packages/ui/src/version.ts
6633
- var ROXY_UI_VERSION = "0.2.0";
6638
+ var ROXY_UI_VERSION = "0.2.1";
6634
6639
 
6635
6640
  // packages/ui/src/index.ts
6636
6641
  var ROXY_UI_COMPONENTS = ROXY_COMPONENTS.map((c) => c.slug);