Skip to content

Commit

Permalink
style: clean up HTML structure and remove unnecessary PHP alert message
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1026 committed Dec 17, 2024
1 parent 9081196 commit 3531071
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
21 changes: 9 additions & 12 deletions app/src/app/Layouts/Admin/AdminInventoryLayout.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@
<link href="https://api.mapbox.com/mapbox-gl-js/v3.8.0/mapbox-gl.css" rel="stylesheet">
<script src="https://api.mapbox.com/mapbox-gl-js/v3.8.0/mapbox-gl.js"></script>
<style>
html, body {
height: 100%; /* Asegúrate de que el body ocupe toda la pantalla */
html,
body {
height: 100%;
/* Asegúrate de que el body ocupe toda la pantalla */
margin: 0;
}

#map {
height: calc(100% - 65px); /* O cualquier porcentaje que necesites */
width: 100%; /* Para que ocupe todo el ancho */
height: calc(100% - 65px);
/* O cualquier porcentaje que necesites */
width: 100%;
/* Para que ocupe todo el ancho */
}
</style>
</head>
Expand Down Expand Up @@ -106,14 +110,7 @@ class="hidden absolute right-0 z-10 mt-2 w-56 origin-top-right rounded-md bg-whi
</div>

<!-- Main Content -->
<?php if (Session::has('success')): ?>
<div id="alert-msg" class="bg-blue-500 text-white px-4 py-3 rounded-lg mb-6" role="alert">
<strong class="font-bold">Success: </strong>
<span><?= htmlspecialchars(Session::get('success')); ?></span>
</div>
<?php endif;
echo $content;
?>
<?= $content ?>

<script src="/assets/js/app.js"></script>
<!-- Javascript, add class d-none to alert-msg after 5 seconds if it exists -->
Expand Down
3 changes: 1 addition & 2 deletions app/src/app/Views/Admin/Inventory.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,4 @@ function spinGlobe() {
});

spinGlobe();
</script>

</script>

0 comments on commit 3531071

Please sign in to comment.