Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(VAppBar): don't truncate title with shrink-on-scroll #12516

Merged
merged 9 commits into from
Nov 3, 2020

Conversation

KaelWD
Copy link
Member

@KaelWD KaelWD commented Oct 26, 2020

Description

Adds a new v-app-bar-title component which uses absolute positioning to avoid
being truncated when there isn't enough space in the main part of the toolbar

closes #12514

Markup:

<template>
  <v-container style="height: 1200px">
    <v-app-bar
      fixed
      shrink-on-scroll
    >
      <v-app-bar-nav-icon />
      <v-app-bar-title>Vuetify.js</v-app-bar-title>
      <v-spacer />
      <v-btn icon>
        <v-icon>mdi-chart-box-outline</v-icon>
      </v-btn>
      <v-btn icon>
        <v-icon>mdi-cog-outline</v-icon>
      </v-btn>
      <v-responsive max-width="260">
        <v-text-field
          class="ml-1"
          dense
          flat
          placeholder="Search Anywhere"
          hide-details
          rounded
          solo-inverted
          prepend-inner-icon="mdi-magnify"
        />
      </v-responsive>
      <v-btn icon>
        <v-icon>mdi-menu</v-icon>
      </v-btn>
    </v-app-bar>
  </v-container>
</template>

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement/refactoring (non-breaking change that doesn't add any features but makes things better)

Checklist:

  • I've added relevant changes to the documentation (applies to new features and breaking changes in core library)

Adds a new v-app-bar-title which uses absolute positioning to avoid
being truncated when there isn't enough space in the main part of the
toolbar

closes #12514
@KaelWD KaelWD added T: feature A new feature C: VAppBar VAppBar labels Oct 26, 2020
@KaelWD KaelWD added this to the v2.4.0 milestone Oct 26, 2020
@KaelWD KaelWD self-assigned this Oct 26, 2020
Co-authored-by: John Leider <9064066+johnleider@users.noreply.github.com>
@KaelWD KaelWD merged commit 8c5ee02 into dev Nov 3, 2020
@KaelWD KaelWD deleted the feat/12514-appbar-title-truncate branch November 3, 2020 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VAppBar VAppBar T: feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants