Spaces:
Paused
Paused
Malina Claude Opus 4.8 commited on
Commit ·
386c43e
1
Parent(s): cfd0328
aria(mobile): long-press menu is plain text (no box) left-aligned to bubble — time above, Odpowiedz below; css/js v23
Browse files
cloudflare/pages-integration/aria.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
<title>ARIA · NNL</title>
|
| 7 |
<link rel="icon" href="favicon.png" />
|
| 8 |
<link rel="stylesheet" href="css/styles.css" />
|
| 9 |
-
<link rel="stylesheet" href="css/aria.css?v=
|
| 10 |
</head>
|
| 11 |
<body class="app-body aria-page" data-theme="default">
|
| 12 |
|
|
@@ -138,6 +138,6 @@
|
|
| 138 |
|
| 139 |
<div class="aria-toast" id="ariaToast" hidden></div>
|
| 140 |
|
| 141 |
-
<script type="module" src="js/aria-chat.js?v=
|
| 142 |
</body>
|
| 143 |
</html>
|
|
|
|
| 6 |
<title>ARIA · NNL</title>
|
| 7 |
<link rel="icon" href="favicon.png" />
|
| 8 |
<link rel="stylesheet" href="css/styles.css" />
|
| 9 |
+
<link rel="stylesheet" href="css/aria.css?v=23" />
|
| 10 |
</head>
|
| 11 |
<body class="app-body aria-page" data-theme="default">
|
| 12 |
|
|
|
|
| 138 |
|
| 139 |
<div class="aria-toast" id="ariaToast" hidden></div>
|
| 140 |
|
| 141 |
+
<script type="module" src="js/aria-chat.js?v=23"></script>
|
| 142 |
</body>
|
| 143 |
</html>
|
cloudflare/pages-integration/css/aria.css
CHANGED
|
@@ -157,11 +157,12 @@ body.aria-page { position: fixed; inset: 0; width: 100%; height: 100%; display:
|
|
| 157 |
.aria-held-clone .aria-react-badge { display: none; }
|
| 158 |
.aria-held-clone.them { background: var(--aria-them); color: var(--aria-them-fg); border-bottom-left-radius: 5px; }
|
| 159 |
.aria-held-clone.me { background: var(--aria-me); color: var(--aria-me-fg); border-bottom-right-radius: 5px; }
|
| 160 |
-
|
|
|
|
|
|
|
| 161 |
.aria-holdmenu.in { transform: scale(1); opacity: 1; }
|
| 162 |
-
.aria-holdmenu-time {
|
| 163 |
-
.aria-holdmenu-item { background: none; border: 0; color: var(--text, #fff); font: inherit; font-size: 15px; text-align: left; padding:
|
| 164 |
-
.aria-holdmenu-item:hover { background: var(--surface-2, #ffffff0d); }
|
| 165 |
.aria-react-picker { z-index: 82; } /* above the blur overlay */
|
| 166 |
.aria-fly { position: fixed; z-index: 90; font-size: 26px; line-height: 1; pointer-events: none; transition: transform .36s cubic-bezier(.4,0,.2,1), opacity .36s; }
|
| 167 |
|
|
|
|
| 157 |
.aria-held-clone .aria-react-badge { display: none; }
|
| 158 |
.aria-held-clone.them { background: var(--aria-them); color: var(--aria-them-fg); border-bottom-left-radius: 5px; }
|
| 159 |
.aria-held-clone.me { background: var(--aria-me); color: var(--aria-me-fg); border-bottom-right-radius: 5px; }
|
| 160 |
+
/* plain (no box) actions under the held bubble, left-aligned to the bubble's left edge */
|
| 161 |
+
.aria-holdmenu { position: fixed; z-index: 64; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
|
| 162 |
+
transform: scale(.9); opacity: 0; transform-origin: top left; transition: transform .18s var(--ease, ease), opacity .18s; }
|
| 163 |
.aria-holdmenu.in { transform: scale(1); opacity: 1; }
|
| 164 |
+
.aria-holdmenu-time { font-size: 12px; color: var(--text-soft, #b9bcc6); white-space: nowrap; text-shadow: 0 1px 4px rgba(0,0,0,0.7); }
|
| 165 |
+
.aria-holdmenu-item { background: none; border: 0; color: var(--text, #fff); font: inherit; font-size: 15px; font-weight: 600; text-align: left; padding: 0; cursor: pointer; text-shadow: 0 1px 4px rgba(0,0,0,0.7); }
|
|
|
|
| 166 |
.aria-react-picker { z-index: 82; } /* above the blur overlay */
|
| 167 |
.aria-fly { position: fixed; z-index: 90; font-size: 26px; line-height: 1; pointer-events: none; transition: transform .36s cubic-bezier(.4,0,.2,1), opacity .36s; }
|
| 168 |
|
cloudflare/pages-integration/js/aria-chat.js
CHANGED
|
@@ -553,7 +553,7 @@ function openHold(rowEl) {
|
|
| 553 |
const px = Math.max(8, Math.min(rect.left + rect.width / 2 - pw / 2, vw - pw - 8));
|
| 554 |
_picker.style.left = px + "px";
|
| 555 |
_picker.style.top = Math.max(8, rect.top - 60) + "px";
|
| 556 |
-
_menu.style.left =
|
| 557 |
_menu.style.top = (rect.bottom + 10) + "px";
|
| 558 |
requestAnimationFrame(() => { _picker.classList.add("in"); _menu.classList.add("in"); });
|
| 559 |
|
|
|
|
| 553 |
const px = Math.max(8, Math.min(rect.left + rect.width / 2 - pw / 2, vw - pw - 8));
|
| 554 |
_picker.style.left = px + "px";
|
| 555 |
_picker.style.top = Math.max(8, rect.top - 60) + "px";
|
| 556 |
+
_menu.style.left = Math.max(8, Math.min(rect.left, vw - 180)) + "px"; // align to the bubble's left edge
|
| 557 |
_menu.style.top = (rect.bottom + 10) + "px";
|
| 558 |
requestAnimationFrame(() => { _picker.classList.add("in"); _menu.classList.add("in"); });
|
| 559 |
|