Skip to content

Commit 2cce0fe

Browse files
style: make feedback button icon-only after mobile breakpoint (#7043)
## Summary On mobile breakpoint, change the "Feedback" button to only show an icon, preserving crucial space on the breadcrumb axis. ## Changes | Before | After | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | <img width="732" height="1458" alt="Selection_2471" src="https://github.com/user-attachments/assets/8491a755-5817-4021-a2bd-8dff09a8345f" /> | <img width="732" height="1458" alt="Selection_2470" src="https://github.com/user-attachments/assets/6229badb-46c4-4617-9984-5636ad4b803c" /> | ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7043-style-make-feedback-button-icon-only-after-mobile-breakpoint-2ba6d73d365081489d9adc89eb5ec42b) by [Unito](https://www.unito.io)
1 parent b9cb335 commit 2cce0fe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/topbar/ActionBarButtons.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
v-for="(button, index) in actionBarButtonStore.buttons"
55
:key="index"
66
v-tooltip.bottom="button.tooltip"
7-
:label="button.label"
7+
:label="isMobile ? undefined : button.label"
88
:aria-label="button.tooltip || button.label"
99
:class="button.class"
1010
text
@@ -21,9 +21,13 @@
2121
</template>
2222

2323
<script lang="ts" setup>
24+
import { breakpointsTailwind, useBreakpoints } from '@vueuse/core'
2425
import Button from 'primevue/button'
2526
2627
import { useActionBarButtonStore } from '@/stores/actionBarButtonStore'
2728
2829
const actionBarButtonStore = useActionBarButtonStore()
30+
31+
const breakpoints = useBreakpoints(breakpointsTailwind)
32+
const isMobile = breakpoints.smaller('sm')
2933
</script>

0 commit comments

Comments
 (0)