Skip to content

Commit 3292164

Browse files
committed
Added labels/titles to view change buttons
1 parent eebe2ec commit 3292164

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/js/Parts/FormatSelector.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<template>
22
<div class="border rounded border-gray-300 dark:border-gray-600 divide-x divide-gray-300 dark:divide-gray-600 text-gray-600 dark:text-gray-400 flex">
3-
<button class="px-2 py-1" :class="{'bg-gray-100 text-gray-900 dark:bg-gray-800 dark:text-gray-400': this.format === 'card'}" type="button" @click="selectFormat('card')">
3+
<button title="Card View" class="px-2 py-1" :class="{'bg-gray-100 text-gray-900 dark:bg-gray-800 dark:text-gray-400': this.format === 'card'}" type="button" @click="selectFormat('card')">
44
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-card-heading" viewBox="0 0 16 16">
55
<path d="M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h13zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13z"/>
66
<path d="M3 8.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5zm0-5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5v-1z"/>
77
</svg>
88
</button>
9-
<button class="px-2 py-1" :class="{'bg-gray-100 text-gray-900 dark:bg-gray-800 dark:text-gray-400': this.format === 'list'}" type="button" @click="selectFormat('list')">
9+
<button title="List View" class="px-2 py-1" :class="{'bg-gray-100 text-gray-900 dark:bg-gray-800 dark:text-gray-400': this.format === 'list'}" type="button" @click="selectFormat('list')">
1010
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-view-list" viewBox="0 0 16 16">
1111
<path d="M3 4.5h10a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2zm0 1a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1H3zM1 2a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13A.5.5 0 0 1 1 2zm0 12a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13A.5.5 0 0 1 1 14z"/>
1212
</svg>
1313
</button>
14-
<button class="px-2 py-1" :class="{'bg-gray-100 text-gray-900 dark:bg-gray-800 dark:text-gray-400': this.format === 'compact'}" type="button" @click="selectFormat('compact')">
14+
<button title="Compact View" class="px-2 py-1" :class="{'bg-gray-100 text-gray-900 dark:bg-gray-800 dark:text-gray-400': this.format === 'compact'}" type="button" @click="selectFormat('compact')">
1515
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-list-task" viewBox="0 0 16 16">
1616
<path fill-rule="evenodd" d="M2 2.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5V3a.5.5 0 0 0-.5-.5H2zM3 3H2v1h1V3z"/>
1717
<path d="M5 3.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zM5.5 7a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1h-9zm0 4a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1h-9z"/>

0 commit comments

Comments
 (0)