Spaces:
Running
Running
Update index.html
Browse files55 unmodified lines56575859606162636465666760 unmodified lines12812913013113213313463 unmodified lines19819920020120220320420520620720820921021121221321421521621721821922022122222322422522622755 unmodified lines}}if (discussion.numComments === 1) {clone.querySelector(".comments-wrapper").remove();} else {clone.querySelector(".num-comments").textContent = `${discussion.numComments - 1}`;}clone.querySelector(60 unmodified linesclass="relative h-16 w-full overflow-hidden"><aclass="group flex h-full items-stretch overflow-hidden rounded-lg border border-gray-100 dark:border-gray-700"href="https://huggingface.co/spaces/huggingface/HuggingDiscussions/discussions/14"><div63 unmodified lines<span class="hidden sm:inline">pinned</span></span></div><divclass="comments-wrapper ml-1 flex flex-none items-center text-sm text-gray-400 dark:text-gray-500"><svgclass="mr-1 text-xs"xmlns="http://www.w3.org/2000/svg"xmlns:xlink="http://www.w3.org/1999/xlink"aria-hidden="true"role="img"width="1em"height="1em"preserveAspectRatio="xMidYMid meet"viewBox="0 0 24 24"><pathfill="none"stroke="currentColor"stroke-linecap="round"stroke-linejoin="round"stroke-width="2"d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg><span class="num-comments">1</span></div></div></div>55 unmodified lines5657585960616263646566676869707172737475767778798081828384858660 unmodified lines14714814915015115215363 unmodified lines21721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427555 unmodified lines}}// Add footprint reaction count if availableif (discussion.numReactionUsers) {const reactionCount = clone.querySelector(".reaction-count");if (reactionCount) {reactionCount.textContent = discussion.numReactionUsers;}} else {// Remove the footprint reaction element if no reactionsconst footprintReaction = clone.querySelector(".footprint-reaction");if (footprintReaction) {footprintReaction.remove();}}// Handle comments displayif (discussion.numComments === 1) {const commentsWrapper = clone.querySelector(".comments-wrapper");if (commentsWrapper) {commentsWrapper.remove();}} else {const numComments = clone.querySelector(".num-comments");if (numComments) {numComments.textContent = `${discussion.numComments - 1}`;}}clone.querySelector(60 unmodified linesclass="relative h-16 w-full overflow-hidden"><aclass="group flex h-full items-stretch overflow-hidden rounded-lg border border-gray-100 dark:border-gray-800"href="https://huggingface.co/spaces/huggingface/HuggingDiscussions/discussions/14"><div63 unmodified lines<span class="hidden sm:inline">pinned</span></span></div><div class="flex h-full items-start pt-2.5"><div class="footprint-reaction mr-2.5"><div class="flex flex-none items-center rounded-md border border-gray-100 dark:border-gray-800 px-1 py-0.5 text-sm leading-[1.1rem] text-gray-400"><svgclass="mr-1"width="1em"height="1em"viewBox="0 0 13 10"fill="none"xmlns="http://www.w3.org/2000/svg"><pathopacity="0.4"fill-rule="evenodd"clip-rule="evenodd"d="M5.20613 0.0788146C4.84833 -0.0530021 4.4727 -0.0190936 4.14836 0.173878C3.94768 0.293493 3.70242 0.515076 3.53918 0.922064C3.40551 0.822303 3.2704 0.744283 3.13558 0.694615C2.79304 0.568426 2.43377 0.589967 2.1243 0.755508C1.72683 0.96792 1.45892 1.3102 1.37017 1.71871C1.32784 1.91326 1.32664 2.10115 1.35959 2.28767C1.1128 2.37578 0.892937 2.54404 0.728505 2.78321C0.599696 2.97075 0.387013 3.3818 0.505034 3.92948C0.476446 3.95184 0.448543 3.97577 0.421525 4.00081C0.130042 4.27011 -0.0188679 4.64095 0.00191534 5.04501C0.0335422 5.65749 0.44283 6.2816 1.37099 7.13164C1.94258 7.65515 2.4937 8.05936 2.50955 8.07098L2.50987 8.07121C3.32016 8.64305 4.08812 9.06486 4.79192 9.32415C5.96539 9.75646 6.96045 9.74079 7.75484 9.27863C7.6389 9.31543 7.52477 9.34855 7.41255 9.37795C6.07892 9.72732 5.01368 9.55574 4.24634 8.8681C3.73119 8.40622 3.39707 7.91817 3.24317 7.39871C3.17573 7.35274 3.11351 7.30941 3.05716 7.26964C3.03561 7.25445 0.403821 5.30836 1.04692 4.71412C1.15497 4.6143 1.27652 4.60311 1.40671 4.65107C1.68582 4.7539 2.0024 5.12901 2.29954 5.48107C2.56228 5.7924 2.80983 6.08571 3.00282 6.15681C3.08356 6.18655 3.15483 6.1774 3.21355 6.11457C3.23036 6.03977 3.25025 5.96436 3.27321 5.88834C3.21884 5.63343 2.85059 5.30154 2.45612 4.94603L2.45611 4.94602C1.84847 4.39839 1.17863 3.7947 1.49811 3.32999C1.60158 3.1792 1.74094 3.15389 1.90174 3.21336C2.31399 3.36525 2.8668 4.07317 3.31657 4.64913L3.31657 4.64913C3.43087 4.79551 3.53852 4.93336 3.63551 5.05139L3.65178 5.02234C3.74944 4.84923 3.834 4.66476 3.90693 4.47926C3.78869 4.30522 3.63368 4.09535 3.43539 3.83953C3.36581 3.74973 3.29769 3.66248 3.23154 3.57775L3.23147 3.57767C2.45304 2.58058 1.94772 1.93332 2.5482 1.6125C2.62326 1.57228 2.70816 1.57351 2.7994 1.60713C3.24756 1.77239 3.852 2.71788 4.22944 3.37784C4.27753 3.14928 4.304 2.97433 4.31492 2.89514C4.31946 2.65643 4.35834 2.39932 4.44137 2.15785C4.35855 1.89995 4.31416 1.67998 4.34073 1.53397C4.42421 1.07505 4.63283 0.903958 4.86996 0.991314C4.97721 1.03083 5.09057 1.12353 5.20058 1.26639C5.26018 1.24033 5.32326 1.21833 5.38998 1.20085L5.3902 1.20079C5.45559 1.18367 5.52307 1.17177 5.59101 1.16528C5.82808 1.14264 6.0632 1.19062 6.28034 1.29912C6.18709 1.05025 6.08532 0.841637 5.97471 0.692302C5.75101 0.390693 5.49251 0.184312 5.20613 0.0788146ZM9.24129 6.21284C9.24279 6.22769 9.24575 6.24234 9.25025 6.25678C9.24737 6.24217 9.24438 6.22752 9.24129 6.21284ZM9.19744 7.57791C8.76737 7.81659 8.11369 8.14877 7.41656 8.36442C7.41552 8.36514 7.41447 8.36587 7.41343 8.36659C8.11108 8.15139 8.76571 7.81899 9.19681 7.57988C9.19702 7.57923 9.19723 7.57857 9.19744 7.57791ZM8.51909 5.57428C8.5106 5.5723 8.50322 5.56834 8.49701 5.56228C8.3133 5.38268 8.29219 5.21257 8.72557 4.68182C8.72577 4.68259 8.72598 4.68336 8.72618 4.68413C8.29434 5.21345 8.31546 5.3834 8.49897 5.56282C8.5047 5.56837 8.51143 5.57216 8.51909 5.57428ZM7.61063 3.88023C7.61078 3.88141 7.61092 3.88258 7.61106 3.88375C7.69877 3.71612 7.7985 3.53568 7.90027 3.35156L7.90028 3.35154C8.08987 3.00854 8.2865 2.65279 8.42555 2.34332C8.42526 2.34231 8.42497 2.3413 8.42469 2.34029C8.28562 2.65024 8.0885 3.00685 7.89846 3.35068C7.79723 3.53382 7.69801 3.71333 7.61063 3.88023ZM5.94894 4.1724C5.9491 4.17345 5.94926 4.17449 5.94941 4.17554C5.97373 4.13756 6.00154 4.09812 6.03308 4.05725C6.6874 3.20869 6.22623 2.25731 5.80244 2.14205C6.22563 2.25968 6.68418 3.2095 6.03087 4.05677C6.00007 4.09669 5.97285 4.13524 5.94894 4.1724ZM6.54032 1.46482C6.56787 1.45029 6.59568 1.43671 6.6237 1.42408C6.61195 1.45045 6.60025 1.47722 6.5886 1.50434C6.57268 1.49079 6.55658 1.47762 6.54032 1.46482Z"fill="currentColor"/><pathd="M7.89307 0.13616C8.26192 0.0395266 8.63252 0.109567 8.9367 0.33298C9.12488 0.47142 9.34759 0.715665 9.47074 1.13652C9.61342 1.05015 9.75545 0.985547 9.89443 0.949134C10.2476 0.856632 10.6031 0.91278 10.8951 1.10745C11.2702 1.35727 11.5038 1.72384 11.5527 2.13901C11.5759 2.33673 11.5591 2.52387 11.5082 2.70632C11.7453 2.81788 11.9479 3.00658 12.0884 3.26052C12.1986 3.45963 12.3705 3.8893 12.2001 4.42303C12.2264 4.44804 12.2519 4.47455 12.2763 4.50209C12.5405 4.79829 12.6529 5.18178 12.5931 5.58194C12.5025 6.18851 12.0347 6.77016 11.0289 7.52653C10.403 7.9971 9.80978 8.34853 9.80449 8.35168C8.94275 8.84254 8.13763 9.18819 7.41206 9.37826C6.07843 9.72762 5.01319 9.55605 4.24586 8.8684C3.01068 7.76096 2.81625 6.50304 3.65129 5.02265C4.11347 4.20343 4.28212 3.12985 4.31443 2.89545C4.32723 2.22309 4.61238 1.40473 5.38949 1.20116L5.38971 1.2011C5.4551 1.18397 5.52258 1.17207 5.59052 1.16558C5.94534 1.1317 6.29581 1.25602 6.58811 1.50464C6.74037 1.15011 6.90183 0.857506 7.06881 0.672513C7.32061 0.393944 7.59783 0.213495 7.89307 0.13616ZM8.1395 1.07688C8.02334 1.10731 7.8948 1.19552 7.76513 1.33906C7.36257 1.78455 6.86078 3.69408 6.687 4.43123C6.62875 4.6782 6.4562 4.82142 6.27915 4.8678C5.92787 4.95982 5.55915 4.67117 6.03259 4.05755C6.74436 3.13449 6.13615 2.08974 5.69196 2.13196C5.67249 2.13381 5.65369 2.13722 5.63592 2.14188C5.24863 2.24333 5.25829 2.97716 5.25829 2.97716C5.25829 2.97716 5.09763 4.40654 4.46983 5.51921C3.84212 6.63213 3.98432 7.35612 4.85991 8.14106C5.45707 8.67629 6.3268 8.65728 7.16562 8.43753C8.03564 8.20961 8.87246 7.7657 9.33721 7.50098C9.36012 7.48794 12.1676 5.80524 11.5849 5.15163C11.4871 5.04184 11.3671 5.01896 11.2329 5.05413C10.6908 5.19615 9.92277 6.28753 9.49882 6.39859C9.40405 6.42341 9.32639 6.39926 9.27243 6.30482C8.91649 5.68306 11.7702 4.6349 11.2696 3.7304C11.1812 3.57031 11.0449 3.53164 10.8792 3.57532C10.1627 3.763 8.89599 5.48487 8.55906 5.57314C8.5333 5.57989 8.5128 5.57697 8.49848 5.56313C8.25598 5.32604 8.29706 5.10547 9.29217 4.05036C10.2872 2.99503 11.0053 2.32889 10.3904 1.91947C10.3196 1.8722 10.2349 1.86521 10.1409 1.88986C9.41854 2.07933 8.13179 4.12993 8.13179 4.12993C8.13179 4.12993 7.80071 4.74515 7.5221 4.81813C7.45808 4.8349 7.39679 4.82308 7.343 4.76831C7.05541 4.4762 8.67105 2.35405 8.61382 1.66812C8.57507 1.20328 8.38397 1.01284 8.1395 1.07688Z"fill="currentColor"/></svg><span class="reaction-count">75</span></div></div><div class="comments-wrapper mr-2.5"><divclass="flex flex-none items-center rounded-md border border-gray-100 dark:border-gray-800 px-1 py-0.5 text-sm leading-[1.1rem] text-gray-400"><svgclass="mr-1 text-xs"xmlns="http://www.w3.org/2000/svg"xmlns:xlink="http://www.w3.org/1999/xlink"aria-hidden="true"role="img"width="1em"height="1em"preserveAspectRatio="xMidYMid meet"viewBox="0 0 24 24"><pathfill="none"stroke="currentColor"stroke-linecap="round"stroke-linejoin="round"stroke-width="2"d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg><span class="num-comments">1</span></div></div></div></div></div>
index.html+77-29