v.0.13.1 fixed minor UI issues, updated rules (bumped from v0.12.53)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rosterchirp-frontend",
|
||||
"version": "0.12.53",
|
||||
"version": "0.13.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
padding: 10px 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 20px;
|
||||
font-size: calc(0.875rem * var(--font-scale));
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.4;
|
||||
font-family: var(--font);
|
||||
color: var(--text-primary);
|
||||
|
||||
@@ -447,7 +447,7 @@ export default function ProfileModal({ onClose }) {
|
||||
</span>
|
||||
</div>
|
||||
<span style={{ fontSize: 12, color: 'var(--text-tertiary)', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>
|
||||
Pinch to zoom in the chat window also adjusts this setting.
|
||||
Pinch to zoom adjusts font size for this session only.
|
||||
</span>
|
||||
</div>
|
||||
<button
|
||||
|
||||
@@ -924,14 +924,23 @@ function EventDetailModal({ event, onClose, onEdit, onAvailabilityChange, isTool
|
||||
lines.push('');
|
||||
}
|
||||
|
||||
const blob = new Blob([lines.join('\n')], { type: 'text/plain' });
|
||||
const url = URL.createObjectURL(blob);
|
||||
const a = document.createElement('a');
|
||||
const safeName = (event.title || 'event').replace(/[^a-z0-9]+/gi, '_').toLowerCase();
|
||||
a.href = url;
|
||||
a.download = `availability_${safeName}.txt`;
|
||||
a.click();
|
||||
URL.revokeObjectURL(url);
|
||||
const fileName = `availability_${safeName}.txt`;
|
||||
const blob = new Blob([lines.join('\n')], { type: 'text/plain' });
|
||||
|
||||
// On mobile use the native share sheet (lets the user choose Save to Files, etc.)
|
||||
// On desktop fall back to a standard download link.
|
||||
const file = new File([blob], fileName, { type: 'text/plain' });
|
||||
if (navigator.canShare && navigator.canShare({ files: [file] })) {
|
||||
navigator.share({ files: [file], title: fileName }).catch(() => {});
|
||||
} else {
|
||||
const url = URL.createObjectURL(blob);
|
||||
const a = document.createElement('a');
|
||||
a.href = url;
|
||||
a.download = fileName;
|
||||
a.click();
|
||||
URL.revokeObjectURL(url);
|
||||
}
|
||||
};
|
||||
|
||||
return ReactDOM.createPortal(
|
||||
|
||||
@@ -97,7 +97,8 @@ if ('serviceWorker' in navigator) {
|
||||
document.addEventListener('touchend', function (e) {
|
||||
if (e.touches.length < 2 && pinchStartDist !== null) {
|
||||
pinchStartDist = null;
|
||||
localStorage.setItem(LS_KEY, currentScale);
|
||||
// Pinch zoom is session-only — do NOT persist to localStorage.
|
||||
// The saved (slider) scale is only written by ProfileModal.
|
||||
}
|
||||
}, { passive: true });
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user