Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

modal fixes

Murtaza Nasirb079c56a21b9
diff --git a/static/css/styles.css b/static/css/styles.css
index 2eaf6889..4cf9b7b9 100644
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -719,3 +719,24 @@ body {
max-height: calc(100vh - 200px);
overflow-y: auto;
}
+
+/* Responsive adjustments for mobile */
+@media (max-width: 1023px) {
+ /* Ensure modals are not too wide on small screens */
+ .fixed.inset-0 .w-full.max-w-md,
+ .fixed.inset-0 .w-full.max-w-lg,
+ .fixed.inset-0 .w-full.max-w-4xl {
+ max-width: 95vw !important;
+ max-height: 90vh;
+ }
+
+ /* Ensure the main content area is visible when the mobile menu is closed */
+ .main-content-area {
+ display: block !important;
+ }
+
+ /* Hide the desktop sidebar by default on mobile */
+ .sidebar-container:not(.fixed) {
+ display: none;
+ }
+}
diff --git a/templates/index.html b/templates/index.html
index 99d36e26..1cd5aad0 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -74,6 +74,18 @@
<i class="fas fa-sign-out-alt mr-2"></i> Logout
</a>
</div>
+ </div>
+ {% else %}
+ <a href="{{ url_for('login') }}" class="px-4 py-2 ml-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg shadow hover:bg-[var(--bg-button-hover)] focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] focus:ring-offset-2 transition duration-150 ease-in-out">
+ <i class="fas fa-sign-in-alt mr-1"></i> Login
+ </a>
+ <a href="{{ url_for('register') }}" class="px-4 py-2 ml-2 text-[var(--text-secondary)] hover:text-[var(--text-accent)] border border-[var(--border-secondary)] rounded-lg">
+ <i class="fas fa-user-plus mr-1"></i> Register
+ </a>
+ {% endif %}
+ </div>
+ </div>
+ </header>
<!-- Reprocess Confirmation Modal -->
<div v-if="showReprocessModal" @click="cancelReprocess" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm transition-all duration-300 ease-in-out">
@@ -232,18 +244,6 @@
</div>
</div>
</div>
- </div>
- {% else %}
- <a href="{{ url_for('login') }}" class="px-4 py-2 ml-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg shadow hover:bg-[var(--bg-button-hover)] focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] focus:ring-offset-2 transition duration-150 ease-in-out">
- <i class="fas fa-sign-in-alt mr-1"></i> Login
- </a>
- <a href="{{ url_for('register') }}" class="px-4 py-2 ml-2 text-[var(--text-secondary)] hover:text-[var(--text-accent)] border border-[var(--border-secondary)] rounded-lg">
- <i class="fas fa-user-plus mr-1"></i> Register
- </a>
- {% endif %}
- </div>
- </div>
- </header>
<!-- Overlay for mobile fly-in menu -->
<div v-if="isMobileMenuOpen" @click="closeMobileMenu" class="fixed inset-0 bg-black bg-opacity-50 z-30 lg:hidden"></div>