Skip to content

Commit

Permalink
table improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Oct 27, 2022
1 parent 0e07d66 commit 1534763
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 32 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions public/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"resources/js/app.js": {
"file": "assets/app.4f39565b.js",
"file": "assets/app.524480af.js",
"src": "resources/js/app.js",
"isEntry": true,
"css": [
"assets/app.cb1b0448.css"
"assets/app.5ff70d90.css"
]
},
"resources/js/app.css": {
"file": "assets/app.cb1b0448.css",
"file": "assets/app.5ff70d90.css",
"src": "resources/js/app.css"
}
}
4 changes: 4 additions & 0 deletions resources/js/Components/Table/Row.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
class="btn btn--delete btn--sm btn--icon"
v-if="item.abilities.delete || item.abilities.forceDelete"
:aria-label="item.trashed ? __('Delete permanently') : __('Delete')"
:title="item.trashed ? __('Delete permanently') : __('Delete')"
@click="destroy"
>
<Icon class="btn__icon" :name="item.trashed ? 'delete-forever' : 'delete'"></Icon>
Expand All @@ -27,6 +28,7 @@
class="btn btn--warning btn--sm btn--icon"
v-if="item.trashed && item.abilities.restore"
:aria-label="__('Restore')"
:title="__('Restore')"
@click="restore"
>
<Icon class="btn__icon" name="restore-from-trash"></Icon>
Expand All @@ -36,6 +38,7 @@
class="btn btn--tertiary btn--sm btn--icon"
:href="item.url"
:aria-label="__('View')"
:title="__('View')"
>
<Icon class="btn__icon" name="view"></Icon>
</Link>
Expand All @@ -44,6 +47,7 @@
class="btn btn--tertiary btn--sm btn--icon"
:href="`${item.url}/edit`"
:aria-label="__('Edit')"
:title="__('Edit')"
>
<Icon class="btn__icon" name="edit"></Icon>
</Link>
Expand Down
7 changes: 7 additions & 0 deletions resources/sass/sprucecss-expansion/_table.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use 'sass:color';
@use '~sprucecss/scss/spruce';

.table {
Expand Down Expand Up @@ -55,4 +56,10 @@
width: 100%;
}
}

tbody {
tr.is-trashed {
background-color: color.scale(hsl(0 71% 51%), $lightness: 80%)
}
}
}
2 changes: 1 addition & 1 deletion src/Root.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ abstract class Root
*
* @var string
*/
public const VERSION = '0.10.1';
public const VERSION = '0.10.2';

/**
* The registered callbacks.
Expand Down

0 comments on commit 1534763

Please sign in to comment.