fix(app): iOS HIG Phase 6 — modals, dialogs & overlays

- PassphraseDialog: submit button h-10→h-11 (44px)
- ShareToNostr: close/cancel/publish buttons expanded to 44px
- ComparisonView: tab buttons min-h-[44px], gap-1→gap-2
- NostrProfileEditor: publish button min-h-[44px]
- NostrRelayManager: all action buttons expanded to 44px
- ChatHistory: conversation items min-h-[44px]

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-04 13:12:43 +00:00
co-authored by Claude Opus 4.6
parent a0edbe7d20
commit 43fa1bac73
7 changed files with 21 additions and 21 deletions
+4 -4
View File
@@ -54,13 +54,13 @@
## Phase 5: Glass Button System & Utility Classes ## Phase 5: Glass Button System & Utility Classes
- [ ] **T17** — Update `.glass-button` and `.glass-button-sm` in `packages/app/src/styles/main.css` to enforce 44px minimum height on mobile. Add a responsive rule: on screens ≤ 768px, `.glass-button` gets `min-height: 48px` and `.glass-button-sm` gets `min-height: 44px`. This catches all uses of these classes automatically. On desktop they stay as-is. - [x] **T17** — Update `.glass-button` and `.glass-button-sm` in `packages/app/src/styles/main.css` to enforce 44px minimum height on mobile. Add a responsive rule: on screens ≤ 768px, `.glass-button` gets `min-height: 48px` and `.glass-button-sm` gets `min-height: 44px`. This catches all uses of these classes automatically. On desktop they stay as-is.
- [ ] **T18** — Audit all `!h-7 !min-h-0` overrides. These force 28px height, defeating the glass button minimum. Search all `.vue` files for `!h-7` and `!min-h-0`. Replace with mobile-responsive approach: keep desktop size but ensure 44px minimum on mobile using `min-h-[44px] md:min-h-0`. - [x] **T18** — Audit all `!h-7 !min-h-0` overrides. These force 28px height, defeating the glass button minimum. Search all `.vue` files for `!h-7` and `!min-h-0`. Replace with mobile-responsive approach: keep desktop size but ensure 44px minimum on mobile using `min-h-[44px] md:min-h-0`.
- [ ] **T19** — Add a `.touch-target` utility class to `main.css`: `.touch-target { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }`. Then refactor at least 15 icon buttons across the app to use this class instead of manual min-w/min-h. This creates a reusable pattern for future development. - [x] **T19** — Add a `.touch-target` utility class to `main.css`: `.touch-target { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }`. Then refactor at least 15 icon buttons across the app to use this class instead of manual min-w/min-h. This creates a reusable pattern for future development.
- [ ] **TEST:P5** — Run `pnpm typecheck && pnpm lint && pnpm test`. Commit and push. - [x] **TEST:P5** — Run `pnpm typecheck && pnpm lint && pnpm test`. Commit and push.
## Phase 6: Modals, Dialogs & Overlays ## Phase 6: Modals, Dialogs & Overlays
@@ -1,7 +1,7 @@
<template> <template>
<div class="flex-1 min-h-0 overflow-y-auto scrollbar-hide p-3 space-y-1"> <div class="flex-1 min-h-0 overflow-y-auto scrollbar-hide p-3 space-y-1">
<button <button
class="w-full text-left px-3 py-2.5 rounded-xl transition-all duration-150 hover:bg-white/5 flex items-center gap-2 text-white/70 mb-2" class="w-full text-left px-3 py-2.5 min-h-[44px] rounded-xl transition-all duration-150 hover:bg-white/5 flex items-center gap-2 text-white/70 mb-2"
@click="$emit('newChat')" @click="$emit('newChat')"
> >
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -17,7 +17,7 @@
<button <button
v-for="conv in conversations" v-for="conv in conversations"
:key="conv.id" :key="conv.id"
class="w-full text-left px-3 py-2.5 rounded-xl transition-all duration-150" class="w-full text-left px-3 py-2.5 min-h-[44px] rounded-xl transition-all duration-150"
:class="conv.id === activeId ? 'nav-tab-active' : 'hover:bg-white/5'" :class="conv.id === activeId ? 'nav-tab-active' : 'hover:bg-white/5'"
@click="selectConversation(conv.id)" @click="selectConversation(conv.id)"
> >
@@ -1,11 +1,11 @@
<template> <template>
<div class="flex flex-col h-full"> <div class="flex flex-col h-full">
<!-- Mobile tabs --> <!-- Mobile tabs -->
<div class="flex md:hidden gap-1 px-3 pt-2"> <div class="flex md:hidden gap-2 px-3 pt-2">
<button <button
v-for="(tab, i) in tabs" v-for="(tab, i) in tabs"
:key="i" :key="i"
class="flex-1 text-xs py-1.5 rounded-lg transition-all" class="flex-1 text-sm min-h-[44px] rounded-lg transition-all"
:class="activeTab === i :class="activeTab === i
? 'bg-accent/20 text-accent' ? 'bg-accent/20 text-accent'
: 'text-white/50 hover:text-white/70'" : 'text-white/50 hover:text-white/70'"
@@ -115,7 +115,7 @@
<!-- Publish button --> <!-- Publish button -->
<button <button
class="w-full py-2.5 rounded-lg text-xs font-medium bg-accent/15 text-accent/80 hover:bg-accent/25 transition-colors disabled:opacity-30" class="w-full min-h-[44px] rounded-lg text-sm font-medium bg-accent/15 text-accent/80 hover:bg-accent/25 transition-colors disabled:opacity-30"
:disabled="isPublishing" :disabled="isPublishing"
@click="publishProfile" @click="publishProfile"
> >
@@ -13,7 +13,7 @@
@keydown.enter="addNewRelay" @keydown.enter="addNewRelay"
/> />
<button <button
class="px-3 py-2 rounded-lg text-xs bg-accent/15 text-accent/80 hover:bg-accent/25 transition-colors disabled:opacity-30" class="px-4 min-h-[44px] rounded-lg text-sm bg-accent/15 text-accent/80 hover:bg-accent/25 transition-colors disabled:opacity-30"
:disabled="!newRelayUrl.trim()" :disabled="!newRelayUrl.trim()"
@click="addNewRelay" @click="addNewRelay"
> >
@@ -51,9 +51,9 @@
</div> </div>
<!-- Controls --> <!-- Controls -->
<div class="flex items-center gap-2"> <div class="flex items-center gap-2 flex-wrap">
<button <button
class="text-xs px-2 py-1 rounded transition-colors" class="text-sm px-3 min-h-[44px] rounded-lg transition-colors"
:class="relay.read :class="relay.read
? 'bg-accent/15 text-accent/80' ? 'bg-accent/15 text-accent/80'
: 'bg-white/5 text-white/30 hover:text-white/50'" : 'bg-white/5 text-white/30 hover:text-white/50'"
@@ -62,7 +62,7 @@
Read Read
</button> </button>
<button <button
class="text-xs px-2 py-1 rounded transition-colors" class="text-sm px-3 min-h-[44px] rounded-lg transition-colors"
:class="relay.write :class="relay.write
? 'bg-accent/15 text-accent/80' ? 'bg-accent/15 text-accent/80'
: 'bg-white/5 text-white/30 hover:text-white/50'" : 'bg-white/5 text-white/30 hover:text-white/50'"
@@ -72,14 +72,14 @@
</button> </button>
<div class="flex-1" /> <div class="flex-1" />
<button <button
class="text-xs px-2 py-1 rounded bg-white/5 text-white/30 hover:text-white/50 transition-colors" class="text-sm px-3 min-h-[44px] rounded-lg bg-white/5 text-white/30 hover:text-white/50 transition-colors"
:disabled="testingRelay === relay.url" :disabled="testingRelay === relay.url"
@click="testConnection(relay.url)" @click="testConnection(relay.url)"
> >
{{ testingRelay === relay.url ? 'Testing...' : 'Test' }} {{ testingRelay === relay.url ? 'Testing...' : 'Test' }}
</button> </button>
<button <button
class="text-xs px-2 py-1 rounded bg-white/5 text-red-400/50 hover:text-red-400/80 hover:bg-red-400/10 transition-colors" class="text-sm px-3 min-h-[44px] rounded-lg bg-white/5 text-red-400/50 hover:text-red-400/80 hover:bg-red-400/10 transition-colors"
@click="removeRelay(relay.url)" @click="removeRelay(relay.url)"
> >
Remove Remove
@@ -99,7 +99,7 @@
<!-- Import NIP-65 --> <!-- Import NIP-65 -->
<div v-if="isLoggedIn" class="mt-4 pt-4 border-t border-white/5"> <div v-if="isLoggedIn" class="mt-4 pt-4 border-t border-white/5">
<button <button
class="w-full text-left px-3 py-2 rounded-lg text-xs bg-white/5 text-white/40 hover:text-white/60 hover:bg-white/10 transition-colors" class="w-full text-left px-3 min-h-[44px] rounded-lg text-sm bg-white/5 text-white/40 hover:text-white/60 hover:bg-white/10 transition-colors"
:disabled="isImporting" :disabled="isImporting"
@click="importFromNIP65" @click="importFromNIP65"
> >
@@ -4,10 +4,10 @@
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<h3 class="text-sm font-bold text-white/90">Share to Nostr</h3> <h3 class="text-sm font-bold text-white/90">Share to Nostr</h3>
<button <button
class="p-1.5 rounded-lg text-white/40 hover:text-white/70 hover:bg-white/5 transition-colors" class="p-2 min-w-[44px] min-h-[44px] flex items-center justify-center rounded-lg text-white/40 hover:text-white/70 hover:bg-white/5 transition-colors"
@click="close" @click="close"
> >
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" /> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg> </svg>
</button> </button>
@@ -26,13 +26,13 @@
<div class="flex gap-2"> <div class="flex gap-2">
<button <button
class="flex-1 py-2.5 rounded-lg text-xs font-medium text-white/40 hover:text-white/70 hover:bg-white/5 transition-colors" class="flex-1 min-h-[44px] rounded-lg text-sm font-medium text-white/40 hover:text-white/70 hover:bg-white/5 transition-colors"
@click="close" @click="close"
> >
Cancel Cancel
</button> </button>
<button <button
class="flex-1 py-2.5 rounded-lg text-xs font-medium bg-accent/15 text-accent/80 hover:bg-accent/25 transition-colors disabled:opacity-30" class="flex-1 min-h-[44px] rounded-lg text-sm font-medium bg-accent/15 text-accent/80 hover:bg-accent/25 transition-colors disabled:opacity-30"
:disabled="isPublishing || !isLoggedIn" :disabled="isPublishing || !isLoggedIn"
@click="publish" @click="publish"
> >
@@ -68,7 +68,7 @@
Skip Skip
</button> </button>
<button <button
class="glass-button flex-1 h-10 rounded-xl text-sm font-medium text-white transition-opacity" class="glass-button flex-1 h-11 rounded-xl text-sm font-medium text-white transition-opacity"
:disabled="!canSubmit" :disabled="!canSubmit"
:class="{ 'opacity-40 cursor-not-allowed': !canSubmit }" :class="{ 'opacity-40 cursor-not-allowed': !canSubmit }"
@click="handleSubmit" @click="handleSubmit"