mirror of
https://github.com/anten-ka/gotelegram_pro.git
synced 2026-05-19 15:36:03 +00:00
v2.5.0: align key table buttons
This commit is contained in:
@@ -400,6 +400,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="/app.js?v=2.5.0-admin15" type="module"></script>
|
<script src="/app.js?v=2.5.0-admin16" type="module"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1045,6 +1045,24 @@ td small {
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.keys-table .mini-actions,
|
||||||
|
.keys-table .action-buttons {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
align-content: center;
|
||||||
|
align-items: stretch;
|
||||||
|
gap: 8px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.keys-table .mini-actions button,
|
||||||
|
.keys-table .action-buttons button {
|
||||||
|
width: 100%;
|
||||||
|
min-height: 44px;
|
||||||
|
white-space: normal;
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
|
||||||
.backup-schedule,
|
.backup-schedule,
|
||||||
.backup-includes {
|
.backup-includes {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|||||||
@@ -137,6 +137,9 @@ class AdminFeatureTests(unittest.TestCase):
|
|||||||
self.assertNotIn('class="actions"', app_js)
|
self.assertNotIn('class="actions"', app_js)
|
||||||
self.assertIn('class="action-buttons"', app_js)
|
self.assertIn('class="action-buttons"', app_js)
|
||||||
self.assertIn('class="key-name-button"', app_js)
|
self.assertIn('class="key-name-button"', app_js)
|
||||||
|
self.assertIn(".keys-table .mini-actions,\n.keys-table .action-buttons", styles)
|
||||||
|
self.assertIn("grid-template-columns: 1fr", styles)
|
||||||
|
self.assertIn("min-height: 44px", styles)
|
||||||
self.assertNotIn("td.actions", styles)
|
self.assertNotIn("td.actions", styles)
|
||||||
self.assertRegex(index, r'<table class="keys-table">[\s\S]*?<tbody id="usersTable">')
|
self.assertRegex(index, r'<table class="keys-table">[\s\S]*?<tbody id="usersTable">')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user