Skip to content

Conversation

@pgalhardo
Copy link
Contributor

Description

This PR introduces responsive justify-items utilities to Vuetify’s utility system and updates the documentation accordingly.

Changes included:

  • Added justify-items utilities in _utilities.scss with responsive support.
  • Updated the Flex documentation (flex.md) to include all new justify-items-* classes.

Markup / Playground

You can test the new utilities using the following Vue Playground:

<template>
  <v-app>
    <v-container>
      <h3>justify-items examples</h3>
      <div class="d-flex flex-column ga-4">
        <div class="grid justify-items-start">
          <div class="item">start</div>
          <div class="item">start</div>
        </div>
        <div class="grid justify-items-end">
          <div class="item">end</div>
          <div class="item">end</div>
        </div>
        <div class="grid justify-items-center">
          <div class="item">center</div>
          <div class="item">center</div>
        </div>
        <div class="grid justify-items-stretch">
          <div class="item">stretch</div>
          <div class="item">stretch</div>
        </div>
      </div>
    </v-container>
  </v-app>
</template>

<style scoped>
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px;
  gap: 8px;
  border: 1px solid #ccc;
}

.item {
  background: #ddd;
  padding: 8px;
  text-align: center;
  min-width: 40px;
}
</style>

@J-Sek
Copy link
Contributor

J-Sek commented Nov 21, 2025

PRs with new stuff should target dev branch. Would it be a problem for you to change the target and rebase if necessary?

@pgalhardo pgalhardo changed the base branch from master to dev November 23, 2025 13:05
@pgalhardo pgalhardo force-pushed the feat/flex-justify-items branch from 48e18c6 to b32b5b3 Compare November 23, 2025 13:07
@pgalhardo pgalhardo force-pushed the feat/flex-justify-items branch from b32b5b3 to f3a2261 Compare November 23, 2025 13:11
@J-Sek
Copy link
Contributor

J-Sek commented Nov 23, 2025

Technically, it does not work with display: flex.
It might be confusing to list it on the documentation for flexbox utilities.
(I probably should have raised it earlier)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants