small fixes to rating display

This commit is contained in:
vabene1111
2025-08-16 12:04:30 +02:00
parent e98d00a962
commit d98bf9155d
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
<v-avatar color="primary">V</v-avatar> <v-avatar color="primary">V</v-avatar>
</template> </template>
<v-list-item-title class="font-weight-bold">{{ c.createdBy.displayName }} <v-list-item-title class="font-weight-bold">{{ c.createdBy.displayName }}
<v-rating density="comfortable" size="x-small" color="tandoor" class="float-right" v-model="c.rating"></v-rating> <v-rating density="comfortable" size="x-small" color="tandoor" class="float-right" v-model="c.rating" readonly v-if="c.rating != undefined"></v-rating>
</v-list-item-title> </v-list-item-title>
{{ c.comment }} {{ c.comment }}

View File

@@ -29,7 +29,7 @@
<recipe-context-menu :recipe="recipe" v-if="useUserPreferenceStore().isAuthenticated"></recipe-context-menu> <recipe-context-menu :recipe="recipe" v-if="useUserPreferenceStore().isAuthenticated"></recipe-context-menu>
</v-sheet> </v-sheet>
<keywords-component variant="flat" class="ms-1" :keywords="recipe.keywords"></keywords-component> <keywords-component variant="flat" class="ms-1" :keywords="recipe.keywords"></keywords-component>
<v-rating v-model="recipe.rating" size="x-small" v-if="recipe.rating" readonly></v-rating> <v-rating v-model="recipe.rating" size="x-small" v-if="recipe.rating" half-increments readonly></v-rating>
<v-sheet class="ps-2 text-disabled"> <v-sheet class="ps-2 text-disabled">
{{ recipe.description }} {{ recipe.description }}
</v-sheet> </v-sheet>