Struggling with displaying Vuetify list items correctly?

I am implementing vuetify to display the list items in the following structure:

Interests

btn1 btn2
btn3 btn4

Not Interests

btn1 btn2
btn3 btn4

However, the titles "Interests" and "Not Interests" are not showing up correctly.

 <v-layout row wrap>
        <v-flex xs12 v-for="kid in kids">
          <v-card color="blue-grey darken-2" class="white--text">
            <v-card-title primary-title>
            <div>
              <div class="headline">{{kid.name}}</div>
              <span class="grey--text">{{kid.school.name}}</span>
            </div>
              <!--<div>Listen to your favorite artists and albums whenever and wherever, online and offline.</div>-->
            </v-card-title>
            <v-card-actions>
              <v-list>
                <v-list-tile @click="">
                  <v-list-tile-content>
                    <v-list-tile-title>Interests</v-list-tile-title>
                    <div>
                    <v-btn flat dark v-for="(interest, idx) in kid.interests" :key="idx">{{interest}}</v-btn>
                    </div>
                  </v-list-tile-content>
                </v-list-tile>

                <v-divider></v-divider>

                <v-list-tile @click="">
                  <v-list-tile-content>
                    <v-list-tile-title>Not Interests</v-list-tile-title>
                    <div>
                    <v-btn flat dark v-for="(nointerest,idx) in kid.notinterests" :key="idx">{{nointerest}}</v-btn>
                    </div>
                  </v-list-tile-content>
                </v-list-tile>
              </v-list>
            </v-card-actions>

          </v-card>
        </v-flex>
      </v-layout>

I attempted to set a fixed height for the list items, but the alignment is still incorrect.

Codepen

Answer №1

The recommended method is to utilize the two-line option

 <v-list two-line>
  ...
 </v-list>

Check out the demonstration https://codepen.io/ittus/pen/aGeJPe

If desired, you can specify a height for the list tile

.list__tile {
  height: 5rem !important;
}

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Sides of the BoxGeometry

I previously inquired about a particular issue on this post: Adding Thickness to Faces The main problem has been resolved, but now I have encountered a new issue. Initially, my walls were set to side:THREE.BackSide so they didn't display when facing ...

Showing commute time using Google Maps API v3

Is there a way to display the travel time immediately when opening Google Maps API v3? If you want to show the driving time as soon as the map is loaded, check out this example that demonstrates switching between travel modes. While it's easy to set ...

Utilize strings as variables within SASS code

In my project, I have defined two variables called $person-color and $animal-color in a separate file named variables.scss. Now, I want to use these variables in my main stylesheet main.scss. The desired outcome is to have the following CSS styles applied ...

What is the best way to implement the :focus pseudo-class on various identical selectors simultaneously

I am attempting to modify the color of the bottom border when input type number is focused. I have partially succeeded, but the CSS is not being applied to all selectors. Here is the issue: https://i.sstatic.net/OOBVj.png The left side (peso) is not in f ...

How to easily toggle all checkboxes within a Vue.js checkbox group

I'm struggling with manipulating an Array of checkboxes that are grouped into parent and child elements. I need to automatically check all child checkboxes when the parent is checked, uncheck them if the parent is unchecked, and update their states in ...

Display the uploaded images from uploadify on the webpage

I am currently working on a PHP website that utilizes uploadify for users to upload portfolio images. While I have successfully implemented uploadify, I am now exploring the most effective way to display these uploaded images on the webpage without requir ...

What is the best way to create a directive that wraps the div elements utilized in an ng-repeat loop?

When working on my application, I utilize this HTML snippet for an ng-repeat: <div class="gridBody"> <div ng-class="{clicked: row.current == true}" ng-click="home.rowClicked($index)" ng-dblclick="ctrl.rowDoub ...

Having trouble with Vue JS not showing the footer on your website?

I recently set up vue cli and encountered an issue where my navbar component shows up fine, but the footer component does not display properly. When I navigate to other CMS pages, both the navbar and footer appear together without any text displayed in bet ...

Error in React Native JS: Cannot call the `map` function on variable `l`

Recently diving into the world of Js and React, I am tasked with creating an application for Macronutrients in my second semester project. The challenge I'm facing is incorporating a Pie Chart that displays the values from my state. To implement the ...

Can gRPC be integrated into Nuxt.js?

Currently, I am utilizing Nuxt.js to construct a frontend for interfacing with data obtained from a REST API. In order to interact with functions on a remote service, I am considering using gRPC as there is an endpoint available for this purpose. Despite ...

Ways to center text vertically within a cell in a Bootstrap 5 table

I am trying to achieve vertical alignment in one of the cells of a table I created. According to the Bootstrap 5 documentation, the vertical-alignment utilities only affect certain elements like inline, inline-block, inline-table, and table cell elements. ...

Is there a way to modify the text color within the thumb-label of the Vuetify v-slider component?

Lately, I've been facing some challenges and my objective is to change the color of the thumb label on my v-slider to a custom one that is defined in the component's design. Can anyone provide guidance on how to achieve this? Regards, Joost ...

Ways to modify the height of a button without impacting other buttons?

My goal is to create a calculator that looks like the image attached below: However, I'm having trouble aligning the equal button properly. How can I adjust it to match the equal button in the image? Here's the code snippet I'm currently w ...

React with TypeScript: The struggle of getting LocalStorage to work

Currently, I am dealing with persistence in a todo application developed using React and TypeScript. To achieve the desired persistence, I have implemented localStorage. Allow me to share some code snippets: const [todos, setTodos] = useState<todoMod ...

Struggling with implementing Vue.js for making a task list using Bootstrap 5

I'm trying to get the hang of Vue.js. I've been working on setting up a to-do list where users can input tasks, but I'm having trouble getting the list to display correctly when I define the method. It seems like my add() function isn't ...

The Vue.js updated hook causing unnecessary page rerenders even when there are no changes in the state

Seeking to retrieve data from an api and utilize updated() to trigger a rerender upon a change in the state that stores the fetch url. However, encountering an issue where the updated hook continues to render even when there is no alteration in the state. ...

Instructions for inserting <tr></tr> after every fourth iteration of <td></td> in the loop

I am trying to create a list of twenty people with each tr containing 4 people, and I want to break from the loop after every fourth number. Each td value should be incremented in order. This is the code snippet I have been working on: <?php for ($i ...

Increase the thickness of the scrollbar track over the scrollbar thumb

I've come across several discussions on making the track thinner than the scrollbar thumb, but I'm looking to do the opposite. Is it possible to have a scrollbar track that is thicker than the scrollbar thumb? ...

The website's responsive design functions flawlessly when viewed on a desktop browser or mobile-simulator for Safari and Mozilla Firefox. However, when accessed on an actual smartphone using Android or iOS

I've been experimenting with different lines of code, but I'm struggling to pinpoint the error as my code functions on a desktop and should also work on mobile devices... <meta name="viewport" content="width=device-width, initial-scale=1, max ...

React hooks - Issue with updating state properties within sidebar display

When resizing the window, I have an event that will display either the desktop sidebar or the mobile sidebar. However, there are variables that are not immediately updated to show the sidebar correctly based on the window size. In a desktop window, this ca ...