fixed scrolling
This commit is contained in:
parent
c36c9a3ef1
commit
efae35be41
2 changed files with 10 additions and 6 deletions
|
|
@ -219,7 +219,11 @@ table {
|
||||||
|
|
||||||
thead {
|
thead {
|
||||||
border-bottom: 1px solid var(--border-color);
|
border-bottom: 1px solid var(--border-color);
|
||||||
position: relative;
|
background-color: var(--white);
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1;
|
||||||
|
box-shadow: 0 2px 0 var(--border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
tbody th {
|
tbody th {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
{{with .Order}}
|
{{with .Order}}
|
||||||
<div class="order-contents">
|
<div class="order-contents">
|
||||||
<div>
|
<div>
|
||||||
<h2>Info</h2>
|
<h2>Dane zamówienia</h2>
|
||||||
<label>
|
<label>
|
||||||
<input hidden="hidden" name="id" value="{{.ID}}">
|
<input hidden="hidden" name="id" value="{{.ID}}">
|
||||||
</label>
|
</label>
|
||||||
|
|
@ -43,18 +43,18 @@
|
||||||
<input type="number" name="paid" min="0" value="{{.Paid}}">
|
<input type="number" name="paid" min="0" value="{{.Paid}}">
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="scrollable">
|
<div>
|
||||||
<h2>Dodane Ciasta</h2>
|
<h2>Dodane Ciasta</h2>
|
||||||
<ul id="basket">
|
<ul id="basket" class="scrollable">
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit">Zapisz</button>
|
<button type="submit">Zapisz</button>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{with .Catalogue}}
|
{{with .Catalogue}}
|
||||||
<div class="scrollable">
|
<div >
|
||||||
<h2>Katalog</h2>
|
<h2>Katalog</h2>
|
||||||
<ul>
|
<ul class="scrollable">
|
||||||
{{range .}}
|
{{range .}}
|
||||||
<li>
|
<li>
|
||||||
{{.Name}} {{.Price}}
|
{{.Name}} {{.Price}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue