v0.9.25 limit app-name length
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jama-frontend",
|
||||
"version": "0.9.24",
|
||||
"version": "0.9.25",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -457,9 +457,18 @@ export default function BrandingModal({ onClose }) {
|
||||
<div style={{ marginBottom: 24 }}>
|
||||
<div className="settings-section-label">App Name</div>
|
||||
<div style={{ display: 'flex', gap: 8 }}>
|
||||
<input className="input flex-1" value={appName} onChange={e => setAppName(e.target.value)} onKeyDown={e => e.key === 'Enter' && handleSaveName()} />
|
||||
<input
|
||||
className="input flex-1"
|
||||
value={appName}
|
||||
maxLength={16}
|
||||
onChange={e => setAppName(e.target.value)}
|
||||
onKeyDown={e => e.key === 'Enter' && handleSaveName()}
|
||||
/>
|
||||
<button className="btn btn-primary btn-sm" onClick={handleSaveName} disabled={loading}>{loading ? '...' : 'Save'}</button>
|
||||
</div>
|
||||
<p style={{ fontSize: 12, color: 'var(--text-tertiary)', marginTop: 6 }}>
|
||||
Maximum 16 characters including spaces. Currently {appName.length}/16.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Reset */}
|
||||
|
||||
Reference in New Issue
Block a user