Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
Revert "upload: Show drop anywhere overlay when user drags an upload file."
Tim Abbott0e14bd799551
diff --git a/static/images/drag-drop/drag-drop.svg b/static/images/drag-drop/drag-drop.svgdeleted file mode 100644index 2ebc19c7832..00000000000--- a/static/images/drag-drop/drag-drop.svg+++ /dev/null@@ -1,25 +0,0 @@-<svg width="289" height="84" viewBox="0 0 289 84" fill="none" xmlns="http://www.w3.org/2000/svg">-<path d="M29.6621 36H12.6621C11.6012 36 10.5838 36.4214 9.83368 37.1716C9.08354 37.9217 8.66211 38.9391 8.66211 40L8.66211 72C8.66211 73.0609 9.08354 74.0783 9.83368 74.8284C10.5838 75.5786 11.6012 76 12.6621 76H36.6621C37.723 76 38.7404 75.5786 39.4905 74.8284C40.2407 74.0783 40.6621 73.0609 40.6621 72V47L29.6621 36Z" fill="#00697D"/>-<path fill-rule="evenodd" clip-rule="evenodd" d="M15.1621 58C15.1621 54.9624 17.6245 52.5 20.6621 52.5C23.6997 52.5 26.1621 54.9624 26.1621 58C26.1621 61.0376 23.6997 63.5 20.6621 63.5C17.6245 63.5 15.1621 61.0376 15.1621 58ZM20.6621 55.5C19.2814 55.5 18.1621 56.6193 18.1621 58C18.1621 59.3807 19.2814 60.5 20.6621 60.5C22.0428 60.5 23.1621 59.3807 23.1621 58C23.1621 56.6193 22.0428 55.5 20.6621 55.5Z" fill="#00BDE6"/>-<path fill-rule="evenodd" clip-rule="evenodd" d="M12.6621 34.5C11.2034 34.5 9.80447 35.0795 8.77302 36.1109C7.74157 37.1424 7.16211 38.5413 7.16211 40V72C7.16211 73.4587 7.74157 74.8576 8.77302 75.8891C9.80447 76.9205 11.2034 77.5 12.6621 77.5H36.6621C38.1208 77.5 39.5197 76.9205 40.5512 75.8891C41.5826 74.8576 42.1621 73.4587 42.1621 72V48.0772C42.1634 48.0516 42.1641 48.0259 42.1641 48C42.1641 47.9741 42.1634 47.9484 42.1621 47.9228V47C42.1621 46.6022 42.0041 46.2206 41.7228 45.9393L30.7228 34.9393C30.4415 34.658 30.0599 34.5 29.6621 34.5H12.6621ZM39.1621 62.4136V49.5H28.6641C27.8356 49.5 27.1641 48.8284 27.1641 48V37.5H12.6621C11.9991 37.5 11.3632 37.7634 10.8943 38.2322C10.4255 38.7011 10.1621 39.337 10.1621 40V72C10.1621 72.663 10.4255 73.2989 10.8943 73.7678C11.3632 74.2366 11.9991 74.5 12.6621 74.5H20.0402L31.7846 62.7556C32.8151 61.7312 34.2091 61.1562 35.6621 61.1562C36.9445 61.1562 38.181 61.6041 39.1621 62.4136ZM24.2828 74.5L33.8996 64.8832L33.901 64.8818C34.3693 64.4171 35.0023 64.1562 35.6621 64.1562C36.322 64.1562 36.9552 64.4172 37.4234 64.8821L37.4246 64.8832L39.1621 66.6207V72C39.1621 72.663 38.8987 73.2989 38.4299 73.7678C37.961 74.2366 37.3251 74.5 36.6621 74.5H24.2828ZM38.0408 46.5H30.1641V38.6233L38.0408 46.5Z" fill="#00BDE6"/>-<path d="M77.6623 15H60.6623C59.6014 15 58.584 15.4214 57.8339 16.1716C57.0837 16.9217 56.6623 17.9391 56.6623 19V51C56.6623 52.0609 57.0837 53.0783 57.8339 53.8284C58.584 54.5786 59.6014 55 60.6623 55H84.6623C85.7232 55 86.7406 54.5786 87.4907 53.8284C88.2409 53.0783 88.6623 52.0609 88.6623 51V26L77.6623 15Z" fill="#216394"/>-<path d="M81.7208 38.0607C82.3066 37.4749 82.3066 36.5251 81.7208 35.9393C81.135 35.3536 80.1853 35.3536 79.5995 35.9393L73.6602 41.8787L70.7208 38.9393C70.135 38.3536 69.1853 38.3536 68.5995 38.9393L63.5995 43.9393C63.0137 44.5251 63.0137 45.4749 63.5995 46.0607C64.1853 46.6464 65.135 46.6464 65.7208 46.0607L69.6602 42.1213L72.5995 45.0607C73.1853 45.6464 74.135 45.6464 74.7208 45.0607L81.7208 38.0607Z" fill="#4FB5FF"/>-<path fill-rule="evenodd" clip-rule="evenodd" d="M56.7732 15.1109C57.8047 14.0795 59.2036 13.5 60.6623 13.5H77.6623C78.0601 13.5 78.4416 13.658 78.723 13.9393L89.723 24.9393C90.0043 25.2206 90.1623 25.6022 90.1623 26V51C90.1623 52.4587 89.5828 53.8576 88.5514 54.8891C87.5199 55.9205 86.121 56.5 84.6623 56.5H60.6623C59.2036 56.5 57.8047 55.9205 56.7732 54.8891C55.7418 53.8576 55.1623 52.4587 55.1623 51V19C55.1623 17.5413 55.7418 16.1424 56.7732 15.1109ZM60.6623 16.5H75.1621V27C75.1621 27.8284 75.8337 28.5 76.6621 28.5H87.1623V51C87.1623 51.663 86.8989 52.2989 86.4301 52.7678C85.9612 53.2366 85.3253 53.5 84.6623 53.5H60.6623C59.9993 53.5 59.3634 53.2366 58.8945 52.7678C58.4257 52.2989 58.1623 51.663 58.1623 51V19C58.1623 18.337 58.4257 17.7011 58.8945 17.2322C59.3634 16.7634 59.9993 16.5 60.6623 16.5ZM78.1621 25.5H86.041L78.1621 17.6211V25.5Z" fill="#4FB5FF"/>-<path d="M125.66 36H108.66C107.599 36 106.582 36.4214 105.832 37.1716C105.082 37.9217 104.66 38.9391 104.66 40V72C104.66 73.0609 105.082 74.0783 105.832 74.8284C106.582 75.5786 107.599 76 108.66 76H132.66C133.721 76 134.738 75.5786 135.489 74.8284C136.239 74.0783 136.66 73.0609 136.66 72V47L125.66 36Z" fill="#345BC2"/>-<path fill-rule="evenodd" clip-rule="evenodd" d="M115.923 52.6986C116.393 52.4323 116.97 52.4396 117.434 52.7177L127.434 58.7177C127.886 58.9888 128.162 59.477 128.162 60.0039C128.162 60.5308 127.886 61.0191 127.434 61.2901L117.434 67.2901C116.97 67.5682 116.393 67.5755 115.923 67.3092C115.453 67.0429 115.162 66.5443 115.162 66.0039V54.0039C115.162 53.4635 115.453 52.9649 115.923 52.6986ZM118.162 63.3546L123.747 60.0039L118.162 56.6532V63.3546Z" fill="#8CABFF"/>-<path fill-rule="evenodd" clip-rule="evenodd" d="M108.66 34.502C107.201 34.502 105.803 35.0814 104.771 36.1129C103.74 37.1443 103.16 38.5433 103.16 40.002V72.0019C103.16 73.4606 103.74 74.8596 104.771 75.891C105.803 76.9225 107.201 77.5019 108.66 77.5019H132.66C134.119 77.5019 135.518 76.9225 136.549 75.891C137.581 74.8596 138.16 73.4606 138.16 72.0019V48.113C138.163 48.077 138.164 48.0406 138.164 48.0039C138.164 47.9672 138.163 47.9308 138.16 47.8948V47.002C138.16 46.6041 138.002 46.2226 137.721 45.9413L126.721 34.9413C126.44 34.66 126.058 34.502 125.66 34.502H108.66ZM134.041 46.5039L126.164 38.6272V46.5039H134.041ZM123.164 37.502H108.66C107.997 37.502 107.361 37.7653 106.892 38.2342C106.424 38.703 106.16 39.3389 106.16 40.002V72.0019C106.16 72.665 106.424 73.3009 106.892 73.7697C107.361 74.2386 107.997 74.5019 108.66 74.5019H132.66C133.323 74.5019 133.959 74.2386 134.428 73.7697C134.897 73.3009 135.16 72.665 135.16 72.0019V49.5039H124.664C123.836 49.5039 123.164 48.8323 123.164 48.0039V37.502Z" fill="#8CABFF"/>-<path d="M173.662 15H156.662C155.601 15 154.584 15.4214 153.834 16.1716C153.084 16.9217 152.662 17.9391 152.662 19V51C152.662 52.0609 153.084 53.0783 153.834 53.8284C154.584 54.5786 155.601 55 156.662 55H180.662C181.723 55 182.74 54.5786 183.491 53.8284C184.241 53.0783 184.662 52.0609 184.662 51V26L173.662 15Z" fill="#4F4BD2"/>-<path d="M162.189 34.5251C162.846 33.8687 163.736 33.5 164.664 33.5C165.492 33.5 166.164 34.1716 166.164 35C166.164 35.8284 165.492 36.5 164.664 36.5C164.531 36.5 164.404 36.5527 164.311 36.6464C164.217 36.7402 164.164 36.8674 164.164 37V39C164.164 39.72 163.942 40.4171 163.536 41C163.942 41.5829 164.164 42.28 164.164 43V45C164.164 45.1326 164.217 45.2598 164.311 45.3536C164.404 45.4473 164.531 45.5 164.664 45.5C165.492 45.5 166.164 46.1716 166.164 47C166.164 47.8284 165.492 48.5 164.664 48.5C163.736 48.5 162.846 48.1313 162.189 47.4749C161.533 46.8185 161.164 45.9283 161.164 45V43C161.164 42.8674 161.111 42.7402 161.018 42.6464C160.924 42.5527 160.797 42.5 160.664 42.5C159.836 42.5 159.164 41.8284 159.164 41C159.164 40.1716 159.836 39.5 160.664 39.5C160.797 39.5 160.924 39.4473 161.018 39.3536C161.111 39.2598 161.164 39.1326 161.164 39V37C161.164 36.0717 161.533 35.1815 162.189 34.5251Z" fill="#A6A3FF"/>-<path d="M172.662 33.5C171.834 33.5 171.162 34.1716 171.162 35C171.162 35.8284 171.834 36.5 172.662 36.5C172.795 36.5 172.922 36.5527 173.016 36.6464C173.109 36.7402 173.162 36.8674 173.162 37V39C173.162 39.72 173.384 40.4171 173.79 41C173.384 41.5829 173.162 42.28 173.162 43V45C173.162 45.1326 173.109 45.2598 173.016 45.3536C172.922 45.4473 172.795 45.5 172.662 45.5C171.834 45.5 171.162 46.1716 171.162 47C171.162 47.8284 171.834 48.5 172.662 48.5C173.59 48.5 174.481 48.1313 175.137 47.4749C175.793 46.8185 176.162 45.9283 176.162 45V43C176.162 42.8674 176.215 42.7402 176.309 42.6464C176.402 42.5527 176.53 42.5 176.662 42.5C177.491 42.5 178.162 41.8284 178.162 41C178.162 40.1716 177.491 39.5 176.662 39.5C176.53 39.5 176.402 39.4473 176.309 39.3536C176.215 39.2598 176.162 39.1326 176.162 39V37C176.162 36.0717 175.793 35.1815 175.137 34.5251C174.481 33.8687 173.59 33.5 172.662 33.5Z" fill="#A6A3FF"/>-<path fill-rule="evenodd" clip-rule="evenodd" d="M156.662 13.5C155.203 13.5 153.804 14.0795 152.773 15.1109C151.742 16.1424 151.162 17.5413 151.162 19V51C151.162 52.4587 151.742 53.8576 152.773 54.8891C153.804 55.9205 155.203 56.5 156.662 56.5H180.662C182.121 56.5 183.52 55.9205 184.551 54.8891C185.583 53.8576 186.162 52.4587 186.162 51V26C186.162 25.6022 186.004 25.2206 185.723 24.9393L174.723 13.9393C174.441 13.658 174.06 13.5 173.662 13.5H156.662ZM171.162 16.5H156.662C155.999 16.5 155.363 16.7634 154.894 17.2322C154.426 17.7011 154.162 18.337 154.162 19V51C154.162 51.663 154.426 52.2989 154.894 52.7678C155.363 53.2366 155.999 53.5 156.662 53.5H180.662C181.325 53.5 181.961 53.2366 182.43 52.7678C182.899 52.2989 183.162 51.663 183.162 51V28.5H172.662C171.834 28.5 171.162 27.8284 171.162 27V16.5ZM182.041 25.5H174.162V17.6213L182.041 25.5Z" fill="#A6A3FF"/>-<path d="M221.662 36H204.662C203.601 36 202.584 36.4214 201.834 37.1716C201.084 37.9217 200.662 38.9391 200.662 40V72C200.662 73.0609 201.084 74.0783 201.834 74.8284C202.584 75.5786 203.601 76 204.662 76H228.662C229.723 76 230.74 75.5786 231.491 74.8284C232.241 74.0783 232.662 73.0609 232.662 72V47L221.662 36Z" fill="#7545BD"/>-<path fill-rule="evenodd" clip-rule="evenodd" d="M218.37 52.6775C218.858 52.9385 219.162 53.4468 219.162 54V70C219.162 70.5532 218.858 71.0615 218.37 71.3225C217.882 71.5835 217.29 71.5549 216.83 71.2481L211.208 67.5H207.662C206.834 67.5 206.162 66.8284 206.162 66V58C206.162 57.1716 206.834 56.5 207.662 56.5H211.208L216.83 52.7519C217.29 52.4451 217.882 52.4165 218.37 52.6775ZM216.162 56.8028L212.494 59.2481C212.248 59.4123 211.958 59.5 211.662 59.5H209.162V64.5H211.662C211.958 64.5 212.248 64.5877 212.494 64.7519L216.162 67.1972V56.8028Z" fill="#C8A1FF"/>-<path d="M224.833 55.063C224.316 54.4161 223.372 54.3112 222.725 54.8288C222.078 55.3463 221.973 56.2902 222.491 56.9371C223.539 58.247 224.162 60.0485 224.162 62.0001C224.162 63.9517 223.539 65.7531 222.491 67.063C221.973 67.7099 222.078 68.6538 222.725 69.1714C223.372 69.6889 224.316 69.584 224.833 68.9371C226.345 67.047 227.162 64.5685 227.162 62.0001C227.162 59.4317 226.345 56.9531 224.833 55.063Z" fill="#C8A1FF"/>-<path fill-rule="evenodd" clip-rule="evenodd" d="M204.662 34.5C203.203 34.5 201.804 35.0795 200.773 36.1109C199.742 37.1424 199.162 38.5413 199.162 40V72C199.162 73.4587 199.742 74.8576 200.773 75.8891C201.804 76.9205 203.203 77.5 204.662 77.5H228.662C230.121 77.5 231.52 76.9205 232.551 75.8891C233.583 74.8576 234.162 73.4587 234.162 72V47C234.162 46.6022 234.004 46.2206 233.723 45.9393L222.723 34.9393C222.441 34.658 222.06 34.5 221.662 34.5H204.662ZM219.162 37.5H204.662C203.999 37.5 203.363 37.7634 202.894 38.2322C202.426 38.7011 202.162 39.337 202.162 40V72C202.162 72.663 202.426 73.2989 202.894 73.7678C203.363 74.2366 203.999 74.5 204.662 74.5H228.662C229.325 74.5 229.961 74.2366 230.43 73.7678C230.899 73.2989 231.162 72.663 231.162 72V49.5H220.662C219.834 49.5 219.162 48.8284 219.162 48V37.5ZM230.041 46.5H222.162V38.6213L230.041 46.5Z" fill="#C8A1FF"/>-<path d="M269.662 15L252.662 15C251.601 15 250.584 15.4214 249.834 16.1716C249.084 16.9217 248.662 17.9391 248.662 19V51C248.662 52.0609 249.084 53.0783 249.834 53.8284C250.584 54.5786 251.601 55 252.662 55H276.662C277.723 55 278.74 54.5786 279.491 53.8284C280.241 53.0783 280.662 52.0609 280.662 51V26L269.662 15Z" fill="#91389E"/>-<path d="M255.16 37C255.16 36.1716 255.832 35.5 256.66 35.5H260.66C261.489 35.5 262.16 36.1716 262.16 37C262.16 37.8284 261.489 38.5 260.66 38.5H256.66C255.832 38.5 255.16 37.8284 255.16 37Z" fill="#E08CEB"/>-<path d="M256.662 43.5C255.834 43.5 255.162 44.1716 255.162 45C255.162 45.8284 255.834 46.5 256.662 46.5H260.662C261.491 46.5 262.162 45.8284 262.162 45C262.162 44.1716 261.491 43.5 260.662 43.5H256.662Z" fill="#E08CEB"/>-<path d="M267.162 37C267.162 36.1716 267.834 35.5 268.662 35.5H272.662C273.491 35.5 274.162 36.1716 274.162 37C274.162 37.8284 273.491 38.5 272.662 38.5H268.662C267.834 38.5 267.162 37.8284 267.162 37Z" fill="#E08CEB"/>-<path d="M268.662 43.5C267.834 43.5 267.162 44.1716 267.162 45C267.162 45.8284 267.834 46.5 268.662 46.5H272.662C273.491 46.5 274.162 45.8284 274.162 45C274.162 44.1716 273.491 43.5 272.662 43.5H268.662Z" fill="#E08CEB"/>-<path fill-rule="evenodd" clip-rule="evenodd" d="M252.662 13.5C251.203 13.5 249.804 14.0795 248.773 15.1109C247.742 16.1424 247.162 17.5413 247.162 19V51C247.162 52.4587 247.742 53.8576 248.773 54.8891C249.804 55.9205 251.203 56.5 252.662 56.5H276.662C278.121 56.5 279.52 55.9205 280.551 54.8891C281.583 53.8576 282.162 52.4587 282.162 51V26C282.162 25.6022 282.004 25.2206 281.723 24.9393L270.723 13.9393C270.441 13.658 270.06 13.5 269.662 13.5H252.662ZM267.162 16.5H252.662C251.999 16.5 251.363 16.7634 250.894 17.2322C250.426 17.7011 250.162 18.337 250.162 19V51C250.162 51.663 250.426 52.2989 250.894 52.7678C251.363 53.2366 251.999 53.5 252.662 53.5H276.662C277.325 53.5 277.961 53.2366 278.43 52.7678C278.899 52.2989 279.162 51.663 279.162 51V28.5H268.662C267.834 28.5 267.162 27.8284 267.162 27V16.5ZM278.041 25.5H270.162V17.6213L278.041 25.5Z" fill="#E08CEB"/>-</svg>diff --git a/templates/zerver/app/index.html b/templates/zerver/app/index.htmlindex a782b193fa4..e6a8295b1ed 100644--- a/templates/zerver/app/index.html+++ b/templates/zerver/app/index.html@@ -197,18 +197,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1943053 --><div class="app"><div class="app-main">- <div class="upload-overlay-container">- <div class="upload-overlay-svg-container">- <svg class="upload-overlay-svg" xmlns="http://www.w3.org/2000/svg" fill="none">- <rect class="upload-overlay-svg-rect" width="99%" height="99%" x="2" y="2" stroke="#fff" stroke-dasharray="8 16" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".9" stroke-width="3" rx="12">- </rect>- </svg>- </div>- <div class="upload-overlay-content">- <img class="upload-overlay-content-image" src="{{ static('images/drag-drop/drag-drop.svg') }}" />- <span class="upload-overlay-content-text">{% trans %}Drop files anywhere to attach them to a message.{% endtrans %}</span>- </div>- </div><div class="column-left" id="left-sidebar-container"></div><div class="column-middle">diff --git a/web/src/upload.ts b/web/src/upload.tsindex f47fbbfb9d1..feb0ff3bfe9 100644--- a/web/src/upload.ts+++ b/web/src/upload.ts@@ -32,25 +32,6 @@ export function compose_upload_cancel(): void {compose_upload_object.cancelAll();}-export function current_message_list_has_edit_box(): boolean {- return (- message_lists.current !== undefined && $(".focused-message-list .message_edit").length > 0- );-}--function show_upload_overlay(): void {- if (current_message_list_has_edit_box()) {- // Don't show the overlay if an edit box is open.- return;- }-- $("body").addClass("upload-overlay-visible");-}--function hide_upload_overlay(): void {- $("body").removeClass("upload-overlay-visible");-}-export function feature_check(): XMLHttpRequestUpload {// Show the upload button only if the browser supports it.return window.XMLHttpRequest && new window.XMLHttpRequest().upload;@@ -473,7 +454,6 @@ export function setup_upload(config: Config): Uppy<ZulipMeta, TusBody> {$drag_drop_container.on("drop", (event) => {event.preventDefault();event.stopPropagation();- hide_upload_overlay();assert(event.originalEvent !== undefined);assert(event.originalEvent.dataTransfer !== null);const files = event.originalEvent.dataTransfer.files;@@ -691,35 +671,18 @@ export function initialize(): void {}});- let drag_counter = 0;// Allow the app panel to receive drag/drop events.$(".app, #navbar-fixed-container").on("dragover", (event) => {event.preventDefault();- // Show the upload overlay during drag events.- show_upload_overlay();});+ // TODO: Do something visual to hint that drag/drop will work.$(".app, #navbar-fixed-container").on("dragenter", (event) => {event.preventDefault();- drag_counter += 1;- // Show the upload overlay during drag events.- show_upload_overlay();- });-- $(".app, #navbar-fixed-container").on("dragleave", (event) => {- event.preventDefault();- drag_counter -= 1;- // Hide the upload overlay when no files are being dragged.- if (drag_counter === 0) {- hide_upload_overlay();- }});$(".app, #navbar-fixed-container").on("drop", (event) => {event.preventDefault();- drag_counter = 0;- // Hide the upload overlay after files are dropped.- hide_upload_overlay();if (event.target.nodeName === "IMG" && event.target === drag_drop_img) {drag_drop_img = null;diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex 157882e91f3..a5192755c40 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -503,10 +503,6 @@*/--unread-marker-left: -1px;- /* Used by upload overlay to show compose box above it. */- --compose-default-z-index: 4;- --upload-overlay-z-index: 10000;- --compose-with-upload-overlay-z-index: 10001;/*Compose-recipient box minimum height. Used in a flexbox context toallow elements like DM pills to stack without breaking out of theirdiff --git a/web/styles/compose.css b/web/styles/compose.cssindex 1d3fddf568c..400eb2db88d 100644--- a/web/styles/compose.css+++ b/web/styles/compose.css@@ -639,13 +639,7 @@position: fixed;bottom: 0;left: 0;- z-index: var(--compose-default-z-index);-}--@media (width > $sm_min) {- .upload-overlay-visible #compose {- z-index: var(--compose-with-upload-overlay-z-index);- }+ z-index: 4;}#compose-container {diff --git a/web/styles/message_row.css b/web/styles/message_row.cssindex 4648573f32f..cefeaab1705 100644--- a/web/styles/message_row.css+++ b/web/styles/message_row.css@@ -885,11 +885,6 @@}}-.upload-overlay-visible .edit-form {- position: relative;- z-index: var(--compose-with-upload-overlay-z-index);-}-.message_edit_content {max-height: var(--max-message-edit-height);width: 100%;diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex d66d57dae6f..c0b19c504bf 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -672,99 +672,6 @@ body.has-overlay-scrollbar {}}-.upload-overlay-container {- visibility: hidden;- position: fixed;- display: flex;- top: 0;- left: 0;- width: 100vw;- height: 100vh;- flex-direction: column;- align-items: center;- justify-content: center;- gap: 1em;- /* Semi-transparent background with a blur effect */- background: hsl(238deg 35% 15% / 65%);- backdrop-filter: blur(8px);- transition:- transform 400ms,- opacity 400ms;- opacity: 0;- z-index: -1;- pointer-events: none;-}--.upload-overlay-visible .upload-overlay-container {- visibility: visible;- z-index: var(--upload-overlay-z-index);- opacity: 1;- pointer-events: all;-}--.upload-overlay-svg-container {- width: 100%;- height: 100%;- display: flex;- justify-content: center;- align-items: center;- margin: auto;-}--.upload-overlay-svg {- /* We have left 80px from both sides of the display. */- width: calc(100% - 5em); /* 80px at 16px/1em */- height: calc(100% - 5em); /* 80px at 16px/1em */- display: flex;- justify-content: center;- align-items: center;-- @media (width <= $sm_min) {- width: calc(100% - 3em); /* 48px at 16px/1em */- height: calc(100% - 3em);- }-}--.upload-overlay-svg-rect {- /* The border SVG is a square with 3px border. */- width: calc(100% - 3px);- height: calc(100% - 3px);-}--.upload-overlay-content {- position: fixed;- top: 50%;- left: 50%;- transform: translate(-50%, -50%);- display: flex;- flex-direction: column;- align-items: center;- justify-content: center;- gap: 16px;- text-align: center;- color: hsl(0deg 100% 100%);- z-index: 10001;- min-width: 17.5em; /* 280px at 16px/1em */- max-width: 38.125em; /* 610px at 16px/1em */- align-self: stretch;- padding: 0.625em; /* 10px at 16px/1em */-}--.upload-overlay-content-image {- margin-bottom: 0.875em; /* 14px at 16px/1em */- /* Hide the icon on smaller screens to save space */- @media (width <= $sm_min) {- display: none;- }-}--.upload-overlay-content-text {- font-size: 1.6875em; /* 27px at 16px/1em */- font-style: normal;- font-weight: 500;- line-height: 2em; /* 32px at 16px/1em */-}-.column-middle,#compose-content {margin-right: var(--right-sidebar-width);