Skip to content

Commit

Permalink
disable/default icon control
Browse files Browse the repository at this point in the history
  • Loading branch information
brkcvn committed Oct 17, 2022
1 parent e9aa7f8 commit f755efa
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 14 deletions.
7 changes: 7 additions & 0 deletions public/akaunting-js/generalAction.js
Expand Up @@ -385,4 +385,11 @@ document.querySelectorAll('[data-truncate]').forEach((truncate) => {
}
});
});

//disable/enable icons ejected from data-truncate
document.querySelectorAll('[data-index-icon]').forEach((defaultText) => {
defaultText.parentElement.parentElement.parentElement.appendChild(defaultText);
});
//disable/enable icons ejected from data-truncate

//margue animation for truncated text
4 changes: 1 addition & 3 deletions resources/views/banking/accounts/index.blade.php
Expand Up @@ -64,9 +64,7 @@

<x-table.td class="w-6/12 sm:w-5/12">
<x-slot name="first" class="flex font-bold">
<div class="truncate">
{{ $item->name }}
</div>
{{ $item->name }}

@if (! $item->enabled)
<x-index.disable text="{{ trans_choice('general.accounts', 1) }}" />
Expand Down
12 changes: 7 additions & 5 deletions resources/views/components/index/default.blade.php
@@ -1,5 +1,7 @@
<x-tooltip id="{{ $id }}" placement="{{ $position }}" message="{{ $text }}">
<span class="material-icons{{ $iconType }} text-purple text-sm ml-2">
{{ $icon }}
</span>
</x-tooltip>
<div data-index-icon>
<x-tooltip id="{{ $id }}" placement="{{ $position }}" message="{{ $text }}">
<span class="material-icons{{ $iconType }} text-purple text-sm ml-2">
{{ $icon }}
</span>
</x-tooltip>
</div>
12 changes: 7 additions & 5 deletions resources/views/components/index/disable.blade.php
@@ -1,5 +1,7 @@
<x-tooltip id="{{ $id }}" placement="{{ $position }}" message="{{ $disableText }}">
<span class="material-icons{{ $iconType }} text-red text-sm ml-2">
{{ $icon }}
</span>
</x-tooltip>
<div data-index-icon>
<x-tooltip id="{{ $id }}" placement="{{ $position }}" message="{{ $disableText }}">
<span class="material-icons{{ $iconType }} text-red text-sm ml-2">
{{ $icon }}
</span>
</x-tooltip>
</div>
2 changes: 1 addition & 1 deletion resources/views/components/marguee-text.blade.php
@@ -1,4 +1,4 @@
<div class="flex lg:block truncate">
<div data-truncate-parent class="flex lg:block truncate">
<div
@class([ $width ])
data-truncate
Expand Down

0 comments on commit f755efa

Please sign in to comment.