mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 14:45:56 +08:00
(fix) Not unified form of number column content on item card [SCI-9982] (#6936)
This commit is contained in:
parent
f19e7fed9c
commit
320f2d2801
|
@ -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>`;
|
||||
};
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
}"
|
||||
|
|
Loading…
Reference in a new issue