mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-13 01:41:09 +08:00
Fix various css issues for experiment canvas and table [SCI-10568]
This commit is contained in:
parent
c426ee27c4
commit
ba47c75ee4
1 changed files with 9 additions and 8 deletions
|
|
@ -1,15 +1,16 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="flex items-center gap-1.5 h-9 mt-0.5">
|
<div class="flex items-center gap-1.5 h-9 mt-0.5">
|
||||||
<template v-if="params.data.tags.length > 0 || params.data.permissions.manage_tags">
|
<template v-if="params.data.tags.length > 0 || params.data.permissions.manage_tags">
|
||||||
<div v-if="params.data.tags.length > 0"
|
<GeneralDropdown v-if="params.data.tags.length > 0">
|
||||||
class="h-6 px-1.5 flex items-center rounded text-white max-w-[150px]"
|
|
||||||
:style="{'background': params.data.tags[0].color}">
|
|
||||||
<div class="truncate">{{ params.data.tags[0].name }}</div>
|
|
||||||
</div>
|
|
||||||
<GeneralDropdown v-if="params.data.tags.length > 1" >
|
|
||||||
<template v-slot:field>
|
<template v-slot:field>
|
||||||
<div class="h-6 min-w-[24px] text-sn-dark-grey flex items-center justify-center rounded-full text-[.625rem]
|
<div
|
||||||
bg-sn-light-grey border !border-sn-sleepy-grey cursor-pointer">
|
class="h-6 px-1.5 inline-flex items-center rounded text-white max-w-[150px]"
|
||||||
|
:style="{'background': params.data.tags[0].color}">
|
||||||
|
<div class="truncate">{{ params.data.tags[0].name }}</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="params.data.tags.length > 1"
|
||||||
|
class="h-6 min-w-[24px] text-sn-dark-grey inline-flex items-center justify-center rounded-full text-[.625rem]
|
||||||
|
ml-1.5 bg-sn-light-grey border !border-sn-sleepy-grey cursor-pointer">
|
||||||
<span>+{{ params.data.tags.length - 1 }}</span>
|
<span>+{{ params.data.tags.length - 1 }}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue