@alwith/module-chat 0.5.15 → 0.5.16

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.
@@ -1100,7 +1100,7 @@
1100
1100
  width: 80%;
1101
1101
  height: 12px;
1102
1102
  border-radius: 4px;
1103
- background: var(--codex-bg-tertiary);
1103
+ background: var(--codex-bg-tertiary, var(--muted));
1104
1104
  }
1105
1105
 
1106
1106
  .codex-turn-loading-lines span:first-child {
@@ -1542,8 +1542,8 @@
1542
1542
  }
1543
1543
 
1544
1544
  &:hover::-webkit-scrollbar {
1545
- width: var(--codex-hover-scrollbar-size, 6px);
1546
- height: var(--codex-hover-scrollbar-size, 6px);
1545
+ width: var(--codex-hover-scrollbar-size, var(--app-scrollbar-track-size, 10px));
1546
+ height: var(--codex-hover-scrollbar-size, var(--app-scrollbar-track-size, 10px));
1547
1547
  }
1548
1548
 
1549
1549
  &::-webkit-scrollbar-track {
@@ -1561,6 +1561,13 @@
1561
1561
  align-items: center;
1562
1562
  gap: 6px;
1563
1563
  min-width: 0;
1564
+ border: 0;
1565
+ background: none;
1566
+ padding: 0;
1567
+ color: inherit;
1568
+ font: inherit;
1569
+ text-align: start;
1570
+ cursor: pointer;
1564
1571
  }
1565
1572
 
1566
1573
  .codex-edited-file-icon {
@@ -1677,3 +1684,171 @@
1677
1684
  transition: none;
1678
1685
  }
1679
1686
  }
1687
+
1688
+ /* Chat input geometry and colours are shared by draft and conversation surfaces. */
1689
+ :root {
1690
+ --chat-font-size: 14px;
1691
+ --chat-input-line-height: calc(var(--chat-font-size) + 6px);
1692
+ --chat-input-max-height: 18rem;
1693
+ --chat-input-bg-color: var(--background);
1694
+ --chat-input-placeholder-color: color-mix(in oklab, var(--foreground) 30%, var(--background));
1695
+ }
1696
+
1697
+ .dark {
1698
+ --chat-input-bg-color: var(--muted);
1699
+ --chat-input-placeholder-color: var(--muted-foreground);
1700
+ }
1701
+
1702
+ @theme inline {
1703
+ --color-chat-input-bg: var(--chat-input-bg-color);
1704
+ --color-chat-input-placeholder: var(--chat-input-placeholder-color);
1705
+ }
1706
+
1707
+ .codex-composer-surface {
1708
+ overflow: clip;
1709
+ border-width: 0;
1710
+ border-radius: 24px;
1711
+ background: var(--chat-input-bg-color);
1712
+ box-shadow:
1713
+ 0 0 0 0.5px color-mix(in oklab, var(--foreground) 10%, transparent),
1714
+ 0 2px 8px color-mix(in oklab, var(--foreground) 4%, transparent);
1715
+ }
1716
+
1717
+ /* Long drafts scroll within the textarea without exposing native scrollbar chrome. */
1718
+ .codex-composer-surface textarea {
1719
+ scrollbar-width: none;
1720
+ }
1721
+
1722
+ .codex-composer-surface textarea::-webkit-scrollbar {
1723
+ display: none;
1724
+ }
1725
+
1726
+ .chat-composer-toolbar button {
1727
+ height: 28px;
1728
+ border-radius: 9999px;
1729
+ font-size: 14px;
1730
+ font-weight: 400;
1731
+ }
1732
+
1733
+ /* Composer controls share a single subtle fill in both themes. */
1734
+ @media (hover: hover) {
1735
+ .chat-composer-toolbar button:not([type="submit"]):not(:disabled):not([aria-disabled="true"]):not([data-disabled]):hover {
1736
+ background-color: color-mix(in srgb, var(--foreground) 5%, transparent);
1737
+ background-image: none;
1738
+ }
1739
+ }
1740
+
1741
+ .chat-composer-toolbar [data-testid="model-trigger"] {
1742
+ color: var(--foreground);
1743
+ }
1744
+
1745
+ [data-slot="dropdown-menu-content"]:has(> [data-model-menu-header]) {
1746
+ width: 280px;
1747
+ height: 300px;
1748
+ }
1749
+
1750
+ /* Fast mode uses its filled icon for state; only pointer hover paints its background. */
1751
+ [data-model-menu-header] [role="menuitemcheckbox"] {
1752
+ background-color: transparent;
1753
+ background-image: none;
1754
+ }
1755
+
1756
+ @media (hover: hover) {
1757
+ [data-model-menu-header] [role="menuitemcheckbox"]:not([aria-disabled="true"]):hover {
1758
+ background-color: var(--chrome-hover-background, color-mix(in oklab, var(--foreground) 8%, transparent));
1759
+ }
1760
+ }
1761
+
1762
+ [data-model-menu-header] [role="menuitemcheckbox"]:focus-visible {
1763
+ outline: 2px solid var(--ring);
1764
+ outline-offset: 2px;
1765
+ }
1766
+
1767
+ .chat-composer-toolbar .lucide-chevron-up {
1768
+ rotate: 180deg;
1769
+ color: var(--muted-foreground);
1770
+ }
1771
+
1772
+ .permission-mode-menu [role="menuitemradio"] > svg {
1773
+ color: var(--muted-foreground);
1774
+ }
1775
+
1776
+ form[data-shell-mode="true"] .codex-composer-surface {
1777
+ border-color: var(--destructive) !important;
1778
+ }
1779
+
1780
+ .permission-mode-menu [data-slot="dropdown-menu-radio-item-indicator"] svg {
1781
+ width: 14px;
1782
+ height: 14px;
1783
+ }
1784
+
1785
+ .permission-mode-menu [data-slot="dropdown-menu-radio-item-indicator"] {
1786
+ inset-block-start: 50%;
1787
+ transform: translateY(-50%);
1788
+ height: 1rem;
1789
+ }
1790
+
1791
+ button[data-permission-warning],
1792
+ button[data-permission-warning] svg,
1793
+ .permission-mode-menu [role="menuitemradio"]:has([data-permission-warning]),
1794
+ .permission-mode-menu [role="menuitemradio"]:has([data-permission-warning]) * {
1795
+ color: var(--permission-warning);
1796
+ }
1797
+
1798
+ :root {
1799
+ --permission-warning: oklch(0.65 0.2 40);
1800
+ }
1801
+
1802
+ /* Keep table scrolling within the same horizontal inset as prose and code. */
1803
+ .codex-markdown-table-container {
1804
+ width: 100%;
1805
+ min-width: 0;
1806
+ margin-inline: 0;
1807
+ }
1808
+
1809
+ .codex-markdown-table-wrapper {
1810
+ min-width: 100%;
1811
+ margin-inline: 0;
1812
+ }
1813
+
1814
+ .codex-markdown-table {
1815
+ min-width: 100%;
1816
+ }
1817
+
1818
+ /* Keep diff metadata readable in both themes, including upstream diff2html styles. */
1819
+ [data-stream-style="codexUI"] .d2h-wrapper .d2h-info,
1820
+ [data-stream-style="codexUI"] .d2h-wrapper .d2h-tag {
1821
+ color: var(--foreground);
1822
+ }
1823
+
1824
+ [data-stream-style="codexUI"] .codex-markdown-link-label {
1825
+ color: var(--link, var(--codex-link-foreground, var(--foreground)));
1826
+ text-decoration: underline;
1827
+ }
1828
+
1829
+ .codex-markdown-link,
1830
+ .codex-markdown-link .codex-markdown-link-mention {
1831
+ color: var(--link, var(--codex-link-foreground, var(--foreground)));
1832
+ cursor: pointer;
1833
+ }
1834
+
1835
+ .codex-markdown-link:is(:hover, :focus-visible) .codex-markdown-link-label {
1836
+ color: var(--link, var(--codex-link-foreground, var(--foreground)));
1837
+ background-color: color-mix(in oklab, var(--link, var(--codex-link-foreground, var(--foreground))) 14%, transparent);
1838
+ text-decoration: underline;
1839
+ }
1840
+
1841
+ .codex-assistant-turn ::-webkit-scrollbar-thumb:hover {
1842
+ background-color: var(--app-scrollbar-thumb-hover, color-mix(in oklab, var(--foreground) 32%, transparent));
1843
+ }
1844
+ .codex-patch-view::-webkit-scrollbar {
1845
+ width: var(--app-scrollbar-track-size, 10px);
1846
+ height: var(--app-scrollbar-track-size, 10px);
1847
+ }
1848
+ .codex-patch-view::-webkit-scrollbar-thumb {
1849
+ border-width: var(--app-scrollbar-edge-gap, 2px);
1850
+ background-color: var(--app-scrollbar-thumb, color-mix(in oklab, var(--foreground) 18%, transparent));
1851
+ }
1852
+ .codex-patch-view::-webkit-scrollbar-thumb:hover {
1853
+ background-color: var(--app-scrollbar-thumb-hover, color-mix(in oklab, var(--foreground) 32%, transparent));
1854
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwith/module-chat",
3
- "version": "0.5.15",
3
+ "version": "0.5.16",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {