Skip to content

Fix some issues #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gitjobs-server/src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use crate::{
#[cfg(debug_assertions)]
pub(crate) const DEFAULT_CACHE_DURATION: usize = 0; // No cache
#[cfg(not(debug_assertions))]
pub(crate) const DEFAULT_CACHE_DURATION: usize = 60 * 5; // 5 minutes
pub(crate) const DEFAULT_CACHE_DURATION: usize = 0; // No cache

/// Embed static files in the binary.
#[derive(Embed)]
Expand Down
2 changes: 1 addition & 1 deletion gitjobs-server/static/js/common/alerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const showSuccessAlert = (message) => {
text: message,
icon: "success",
showConfirmButton: false,
timer: 5000,
timer: 3000,
...getCommonAlertOptions(),
});
};
Expand Down
4 changes: 2 additions & 2 deletions gitjobs-server/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@

{# View for small devices #}
<div class="flex md:hidden justify-center items-center w-full h-full">
<div class="fixed top-0 start-0 end-0 -z-1 block w-full h-full bg-jobboard"></div>
<div class="fixed top-0 start-0 end-0 -z-10 block w-full h-full bg-jobboard"></div>
<div class="text-center bg-base border border-4 border-primary-600 border-dashed rounded-3xl text-2xl font-medium text-gray-800 p-10 m-10">
This site is not optimized yet for mobile devices
</div>
Expand All @@ -173,7 +173,7 @@
{# Main Content #}
<div class="hidden md:flex min-h-screen">
{% if page_id == PageId::JobBoard %}
<div class="fixed top-[80px] start-0 end-0 -z-1 block w-full h-full bg-jobboard"></div>
<div class="fixed top-[80px] start-0 end-0 -z-10 block w-full h-full bg-jobboard"></div>
{% endif %}
{% block main %}
{% endblock main %}
Expand Down