Skip to content

Commit

Permalink
fix: toolbar overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven committed Dec 28, 2023
1 parent 686cb39 commit aa5fb40
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/toolbar/MarkdownToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,16 @@ onMounted(() => {
min-height: v-bind('TOOLBAR_HEIGHT');
padding-left: var(--kui-space-50, $kui-space-50);
padding-right: var(--kui-space-50, $kui-space-50);
// Allowing the toolbar to scroll horizontally will hide the keyboard shortcut tooltips
// which is fine on mobile since keyboard nav isn't as relevant there.
// overflow-x: auto; // TODO: Enable for horizontal scrolling
// which is fine on mobile since keyboard nav isn't as relevant there, so we force the tooltip content to` display: none`
@media (max-width: ($kui-breakpoint-phablet - 1px)) {
overflow-x: auto; // TODO: Enable for horizontal scrolling
:deep(.tooltip-content) {
display: none !important;
}
}
// TODO: Replace with tabs
.button-group {
Expand Down

0 comments on commit aa5fb40

Please sign in to comment.