Skip to content

Commit a0236b4

Browse files
committed
Fix modal backdrop styling to use blurred background
Updated share and join modals to use consistent backdrop styling with blur effect matching the settings modal. - Changed from bg-black bg-opacity-50 to bg-black/50 backdrop-blur-sm - Added consistent padding (p-4) to modal containers - Standardized z-index and flexbox ordering across all modals
1 parent 0f72a7d commit a0236b4

2 files changed

Lines changed: 26 additions & 17 deletions

File tree

web/templates/join_modal.templ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package templates
22

33
templ JoinModal(roomID string) {
4-
<div class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50" x-data="{ show: true }">
4+
<div class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm" x-data="{ show: true }">
55
<div class="elevated-card bg-gradient-to-br from-white to-slate-50 rounded-2xl shadow-2xl max-w-md w-full mx-4 p-8" x-show="show">
66
<h2 class="text-2xl font-bold text-slate-800 mb-2">Join Room</h2>
77
<p class="text-sm text-slate-600 mb-6">Enter your details to participate</p>

web/templates/share.templ

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ templ ShareControls(roomID string) {
1212
<div
1313
x-show="showShareModal"
1414
@click.self="showShareModal = false"
15-
class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"
15+
class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm"
1616
x-transition
1717
>
1818
<div class="bg-white rounded-lg shadow-2xl max-w-md w-full mx-4 p-6">
@@ -32,21 +32,30 @@ templ ShareControls(roomID string) {
3232
class="w-64 h-64 border-2 border-gray-200 rounded-lg p-4"
3333
/>
3434
</div>
35-
<div class="flex gap-2">
36-
<input
37-
type="text"
38-
readonly
39-
:value="window.location.href"
40-
@click="$event.target.select()"
41-
class="flex-1 px-4 py-2 border border-gray-300 rounded-md text-sm font-mono bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-900"
42-
/>
43-
<button
44-
@click="copyUrl()"
45-
class="px-6 py-2 bg-gray-900 text-white rounded-md text-sm font-medium hover:bg-gray-800 whitespace-nowrap transition"
46-
>
47-
<span x-show="!copied">📋 Copy</span>
48-
<span x-show="copied">✓ Copied!</span>
49-
</button>
35+
<div class="space-y-4">
36+
<div class="flex gap-2">
37+
<input
38+
type="text"
39+
readonly
40+
:value="window.location.href"
41+
@click="$event.target.select()"
42+
class="flex-1 px-4 py-2 border border-gray-300 rounded-md text-sm font-mono bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-900"
43+
/>
44+
<button
45+
@click="copyUrl()"
46+
class="px-6 py-2 bg-gray-900 text-white rounded-md text-sm font-medium hover:bg-gray-800 whitespace-nowrap transition"
47+
>
48+
<span x-show="!copied">📋 Copy</span>
49+
<span x-show="copied">✓ Copied!</span>
50+
</button>
51+
</div>
52+
<div class="flex justify-center">
53+
<div
54+
class="teams-share-button"
55+
:data-href="window.location.href"
56+
data-msg-text="Join my Planning Poker session!"
57+
></div>
58+
</div>
5059
</div>
5160
</div>
5261
</div>

0 commit comments

Comments
 (0)