Small fix
This commit is contained in:
miroman-afk
2023-08-10 11:01:48 +03:00
parent c4dc6e02a0
commit ed61e9627d
11 changed files with 468 additions and 13 deletions

View File

@@ -35,7 +35,7 @@
</div>
</div>
</div>
<div class="padding" id="places">
<div class="padding" id="places" style="width: 100vw;">
<div class="box">
<div class="padding">
<h4>Список залов
@@ -50,7 +50,7 @@
<hr/>
<div class="table-responsive">
<table class="table table-bordered m-a-0">
<table class="table table-responsive table-bordered m-a-0">
<thead>
<th ng-repeat="place in roommap">
<button type="button" class="btn info btn-block" sglclick="getTables(place.place_id)"
@@ -78,7 +78,7 @@
</div>
</div>
</div>
<div class="padding" id="background_1" ng-style="{'max-width':(maxWidth) + 'px', 'width':(screenWidth) + 'vw'}">
<div class="padding" id="background_1" ng-style="{'width':(100) + 'vw'}"><!--'max-width':(maxWidth) + 'px', -->
<div class="box">
<div class="padding" id="background">
<!--<div id="tables" class="box" ng-style="{'height':(windowHeight) + 'px'}">-->
@@ -96,18 +96,16 @@
</div>
<div ng-repeat="table in tables" ng-model="tables" context-menu>
<div ng-if="table.type == 0" id="{{ 'table_' + $index }}" class="demo-div" draggable resize
<button ng-if="table.type == 0" id="{{ 'table_' + $index }}" class="demo-div md-btn white" draggable resize
context-menu
data-target="table-{{ $index }}"
ng-mouseup="getCoords($event, $index, table.table_id, table.place_id)"
ng-style="{'width':'' + table.width * percentWidth + 'px', 'height':'' + table.height * percentHeight + 'px', 'top':'calc(' + top + 'px + ' + table.x * percentHeight + 'px)', 'left': 'calc(' + left + 'px + ' + table.y * percentWidth + 'px)'}"
style="position: fixed;cursor: default;font-family: sans-serif;text-align: center;background-color: #FFFFFF;border: 2px solid #2196f3; z-index: 1; border-radius: 5%">
<div class="box-header">
<small>{{table.name}}</small>
<small>{{table.table_id}}</small>
</div>
<small style="font-size: 70%">{{table.name}}</small>
<small style="font-size: 70%">{{table.table_id}}</small>
</div>
</button>
<div ng-if="table.type == 1" id="{{ 'table_' + $index }}" class="demo-div" draggable resize
context-menu
@@ -119,8 +117,8 @@
ng-style="{'width':'' + table.width * percentWidth + 'px', 'height':'' + table.height * percentHeight + 'px'}"
style="background: transparent; box-shadow: 0 0px 0px transparent;">
<div class="box-header">
<small>{{table.name}}</small>
<small>{{table.table_id}}</small>
<small style="font-size: 70%">{{table.name}}</small>
<small style="font-size: 70%">{{table.table_id}}</small>
</div>
<div class="box-footer"></div>
</div>