Skip to content

Commit

Permalink
fix(faq): Fix long titles not wrapping on words, show full FAQ title …
Browse files Browse the repository at this point in the history
…in nav bar.
  • Loading branch information
aaronmussig committed Dec 9, 2022
1 parent 72ab3af commit 1eb04c5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions components/layout/SectionedPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
@click="selectItem(i)"
class="small-list-item"
>
<v-list-item-content>
<v-list-item-title v-text="item.text"></v-list-item-title>
<v-list-item-content class="my-1">
<v-list-item-title v-text="item.text" class="nav-list-title"></v-list-item-title>
</v-list-item-content>
</v-list-item>
</v-list-item-group>
Expand All @@ -70,7 +70,7 @@
<v-col class="col-12 col-md-9">
<v-card>

<v-card-title class="text-h5">
<v-card-title class="text-h5 card-title">
<slot name="title"/>
</v-card-title>

Expand Down Expand Up @@ -177,6 +177,8 @@ export default Vue.extend({
.sectionTitle {
background-color: #efefef;
overflow-wrap: break-word;
word-break: break-word;
}
.small-list-item {
Expand All @@ -185,4 +187,9 @@ export default Vue.extend({
.small-list-item .v-list-item__content, .v-list--dense .v-list-item .v-list-item__content {
padding: 0 !important;
}
.nav-list-title {
white-space: pre-wrap !important;
}
</style>

0 comments on commit 1eb04c5

Please sign in to comment.