Merge pull request #2831 from brkcvn/master

Some frontend improvements
This commit is contained in:
Burak Civan 2022-12-16 14:30:27 +03:00 committed by GitHub
commit 9dc61f97f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -54,11 +54,12 @@ document.querySelectorAll("[data-table-body]").forEach((table) => {
if (document.body.clientWidth <= 768) { if (document.body.clientWidth <= 768) {
table.querySelectorAll('[data-table-list]').forEach((actions) => { table.querySelectorAll('[data-table-list]').forEach((actions) => {
if (actions.querySelector('[data-mobile-actions]') !== null) { let actions_html = actions.querySelector('[data-mobile-actions]');
actions.querySelector('[data-mobile-actions]').addEventListener('click', function() { if (actions_html) {
actions_html.addEventListener('click', function() {
this.closest('td').querySelector('[data-mobile-actions-modal]').classList.add('show'); this.closest('td').querySelector('[data-mobile-actions-modal]').classList.add('show');
this.closest('td').querySelector('[data-mobile-actions-modal]').classList.remove('opacity-0', 'invisible'); this.closest('td').querySelector('[data-mobile-actions-modal]').classList.remove('opacity-0', 'invisible');
this.closest('td').querySelector('[data-mobile-actions-modal]').addEventListener('click', function() { this.closest('td').querySelector('[data-mobile-actions-modal]').addEventListener('click', function() {
this.classList.add('opacity-0', 'invisible'); this.classList.add('opacity-0', 'invisible');
this.classList.remove('show'); this.classList.remove('show');

2
public/css/app.css vendored
View File

@ -1355,7 +1355,7 @@ input[type=file]::file-selector-button:hover{
.disabled-money input, .disabled-money { .disabled-money input, .disabled-money {
background-color:transparent !important; background-color:transparent !important;
border: none; border: none !important;
} }
[type="radio"]{ [type="radio"]{

View File

@ -78,7 +78,7 @@
.disabled-money input, .disabled-money { .disabled-money input, .disabled-money {
background-color:transparent !important; background-color:transparent !important;
border: none; border: none !important;
} }
[type="radio"] { [type="radio"] {