Skip to content

Commit

Permalink
feat(web-core): update css alignment, tooltip and ellipsis on text
Browse files Browse the repository at this point in the history
  • Loading branch information
CzechSebastian committed Nov 29, 2024
1 parent f4f1d62 commit 4be2bfb
Show file tree
Hide file tree
Showing 8 changed files with 224 additions and 197 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const slots = defineSlots<{
<style lang="postcss" scoped>
.vts-card-row-key-value {
display: flex;
align-items: center;
gap: 0.8rem;
.key {
Expand Down
3 changes: 2 additions & 1 deletion @xen-orchestra/web-core/lib/components/ui/info/UiInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
<template>
<div class="ui-info">
<VtsIcon :accent class="icon" :icon="faCircle" :overlay-icon="icon" />
<p class="message">
<p v-tooltip class="message text-ellipsis">
<slot />
</p>
</div>
</template>

<script lang="ts" setup>
import VtsIcon from '@core/components/icon/VtsIcon.vue'
import { vTooltip } from '@core/directives/tooltip.directive'
import {
faCheck,
faCircle,
Expand Down
6 changes: 4 additions & 2 deletions @xen-orchestra/web-core/lib/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@
"fullscreen": "Fullscreen",
"gateway": "Gateway",
"hosts": "Hosts",
"ip-addresses": "IP Addresses",
"ip-addresses": "IP addresses",
"ip-mode": "IP mode",
"learn-more": "Learn more",
"loading-in-progress": "Loading in progress…",
"log-out": "Log out",
"mac-address": "MAC address",
"mac-addresses": "MAC addresses",
"master": "Primary host",
"mbs": "Mb/s",
"mbs": "{value} Mb/s",
"mtu": "MTU",
"netmask": "Netmask",
"network-block-device": "Network block device",
Expand All @@ -75,6 +75,8 @@
"network": "Network",
"no-data": "No data",
"object-not-found": "Object {id} can't be found…",
"off": "Off",
"on": "On",
"open-console-in-new-tab": "Open console in new tab",
"other": "Other",
"page-not-found": "This page is not to be found…",
Expand Down
6 changes: 4 additions & 2 deletions @xen-orchestra/web-core/lib/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"dark-mode.auto": "Mode sombre automatique",

"access-forum": "Accès au forum",
"connected": "Connécté",
"connected": "Connecté",
"dashboard": "Tableau de bord",
"disconnected": "Déconnécté",
"disconnected-from-physical-device": "Déconnécté de l'appareil physique",
Expand All @@ -66,7 +66,7 @@
"mac-address": "Adresse MAC",
"mac-addresses": "Adresses MAC",
"master": "Hôte primaire",
"mbs": "Mb/s",
"mbs": "{value} Mb/s",
"mtu": "MTU",
"netmask": "Masque réseau",
"network-block-device": "Dispositif de blocage réseau",
Expand All @@ -75,6 +75,8 @@
"network": "Réseau",
"no-data": "Aucune donnée",
"object-not-found": "L'objet {id} est introuvable…",
"off": "Éteint",
"on": "Allumé",
"open-console-in-new-tab": "Ouvrir la console dans un nouvel onglet",
"other": "Autre",
"page-not-found": "Cette page est introuvable…",
Expand Down
Loading

0 comments on commit 4be2bfb

Please sign in to comment.