Browse Source

améliore le rendu

master
vince vince 3 years ago
parent
commit
a55f661e62
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      index.php

+ 10
- 2
index.php View File

@ -340,6 +340,7 @@ $linkUrl = !$hasSupplier ? generateUrl() : (!$hasEvent ? generateUrl($supplier)
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?php if ($hasSupplier) : ?><?php echo strip_tags($config[$supplier]['title']); ?><?php if (!$isConfig) : ?> — <?php echo strip_tags($config[$supplier]['subtitle']); ?><?php endif; ?><?php else : ?><?php echo DEFAULT_TITLE; ?><?php endif; ?></title> <title><?php if ($hasSupplier) : ?><?php echo strip_tags($config[$supplier]['title']); ?><?php if (!$isConfig) : ?> — <?php echo strip_tags($config[$supplier]['subtitle']); ?><?php endif; ?><?php else : ?><?php echo DEFAULT_TITLE; ?><?php endif; ?></title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<style type="text/css">.is-fixed { position: fixed; bottom: 0; width: 100%; box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.5); }</style>
</head> </head>
<body> <body>
<header> <header>
@ -471,8 +472,10 @@ $linkUrl = !$hasSupplier ? generateUrl() : (!$hasEvent ? generateUrl($supplier)
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col mb-3">
<button class="btn btn-primary" type="submit" name="action" value="config">Enregistrer</button>
<div class="col px-0">
<div class="js-fixed bg-light p-3">
<button class="btn btn-primary" type="submit" name="action" value="config">Enregistrer</button>
</div>
</div> </div>
</div> </div>
</form> </form>
@ -772,6 +775,11 @@ $linkUrl = !$hasSupplier ? generateUrl() : (!$hasEvent ? generateUrl($supplier)
}); });
tooltip.show(); tooltip.show();
}); });
document.querySelectorAll('.js-fixed').forEach(function (element) {
const height = window.getComputedStyle(element).height;
element.parentElement.style.height = height;
element.classList.add('is-fixed');
});
}, false); }, false);
</script> </script>
</body> </body>


Loading…
Cancel
Save