Truncate long loadpoints names (#6062)

This commit is contained in:
Michael Geers 2023-02-05 12:08:21 +01:00 • committed by GitHub
parent 04308d9dac
commit c166a68744
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -42,9 +42,10 @@ const state = reactive({
:chargeCurrent="0"
/>
</Variant>
<Variant title="disabled">
<Variant title="disabled, long title">
<Loadpoint
v-bind="state"
title="Charging point with a very very very long title!!!1!"
remoteDisabled="soft"
remoteDisabledSource="Sunny Home Manager"
mode="now"

View file

@ -1,7 +1,7 @@
<template>
<div class="loadpoint pt-4 pb-2 px-3 px-sm-4 mx-2 mx-sm-0">
<div class="d-block d-sm-flex justify-content-between align-items-center mb-3">
<div class="d-flex justify-content-between align-items-center mb-3">
<div class="d-flex justify-content-between align-items-center mb-3 text-truncate">
<h3 class="me-2 mb-0 text-truncate">
{{ title || $t("main.loadpoint.fallbackName") }}
</h3>