diff --git a/myproject/pos/static/pos/css/terminal.css b/myproject/pos/static/pos/css/terminal.css index 806b1be..52669a3 100644 --- a/myproject/pos/static/pos/css/terminal.css +++ b/myproject/pos/static/pos/css/terminal.css @@ -51,3 +51,45 @@ body { color: #6c757d; font-style: italic; } + +/* Фиксация правой панели (корзина + кнопки) */ +.right-panel-fixed { + position: fixed; + top: 56px; /* высота navbar */ + right: 0; + bottom: 0; + width: 33.333%; /* 4/12 колонок */ + overflow-y: auto; + padding: 1rem; + padding-right: 1.5rem; + z-index: 100; + display: flex; + flex-direction: column; +} + +@media (max-width: 767.98px) { + .right-panel-fixed { + width: 100%; + left: 0; + } +} + +/* Панель кнопок внутри фиксированного блока */ +.action-buttons-panel { + margin-top: auto; +} + +/* Стили для кнопок в панели действий */ +.action-buttons-panel .btn { + font-size: 0.75rem; + line-height: 1.2; + white-space: normal; + word-wrap: break-word; + overflow: hidden; + text-overflow: ellipsis; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 0.5rem; +} diff --git a/myproject/pos/templates/pos/terminal.html b/myproject/pos/templates/pos/terminal.html index ed79935..3eef208 100644 --- a/myproject/pos/templates/pos/terminal.html +++ b/myproject/pos/templates/pos/terminal.html @@ -20,18 +20,19 @@
- +