(fix) Not unified form of number column content on item card [SCI-9982] (#6936)

This commit is contained in:
Gregor Lasnibat 2024-01-15 15:55:21 +01:00 committed by GitHub
parent f19e7fed9c
commit 320f2d2801
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -164,7 +164,7 @@ $.fn.dataTable.render.defaultRepositoryNumberValue = function() {
$.fn.dataTable.render.RepositoryNumberValue = function(data) {
return `<span class="number-value" data-value="${data.value}">
${data.value}
${data.value.toLocaleString('en-US', { timeZone: 'UTC' })}
</span>`;
};

View file

@ -33,7 +33,7 @@
'max-h-[4rem]': collapsed,
'max-h-[40rem]': !collapsed
}">
{{ colVal }}
{{ colVal.toLocaleString('en-US', { timezone: 'UTC' }) }}
</div>
<div v-else
class="text-sn-dark-grey font-inter text-sm font-normal leading-5">

View file

@ -1,8 +1,8 @@
<template>
<div id="repository-stock-value-wrapper" class="flex flex-col min-min-h-[46px] h-auto gap-[6px]">
<div id="repository-stock-value-wrapper" class="flex flex-col min-min-h-[46px] h-auto gap-2">
<div class="font-inter text-sm font-semibold leading-5 relative h-[20px] flex flex-row">
<div class="flex flex-row gap-1">
<span class="truncate w-fit inline-block" :title="colName">{{ colName }}</span>
<span class="truncate w-fit inline-block max-w-[18rem]" :title="colName">{{ colName }}</span>
<div v-if="values?.reminder" >
<div v-if="isBetweenThresholdAndDepleted"
class="bg-sn-alert-brittlebush w-1.5 h-1.5 min-w-[0.375rem] min-h-[0.375rem] rounded hover:cursor-pointer"

View file

@ -7,7 +7,7 @@
:class="{
'sci-cursor-edit': !isOpen && withEditCursor,
'border-sn-light-grey hover:border-sn-sleepy-grey': !isOpen,
'border-sn-science-blue': isOpen,
'sn-select--open': isOpen,
'text-sn-grey': !valueLabel,
[className]: true
}"