chore(v4): Update colors (#10700)

This commit is contained in:
Sivin Varghese
2025-01-16 15:27:23 +05:30
committed by GitHub
parent 542bab617b
commit 88f3b4de48
16 changed files with 75 additions and 66 deletions

View File

@@ -18,16 +18,19 @@ export default {
</script>
<template>
<div class="menu text-slate-800 dark:text-slate-100" role="button">
<div
class="menu text-slate-800 dark:text-slate-100 min-h-7 min-w-0"
role="button"
>
<fluent-icon
v-if="variant === 'icon' && option.icon"
:icon="option.icon"
size="14"
class="menu-icon"
class="flex-shrink-0"
/>
<span
v-if="variant === 'label' && option.color"
class="label-pill"
class="label-pill flex-shrink-0"
:style="{ backgroundColor: option.color }"
/>
<Thumbnail
@@ -36,9 +39,9 @@ export default {
:src="option.thumbnail"
:status="option.status"
size="20px"
class="agent-thumbnail"
class="flex-shrink-0"
/>
<p class="menu-label overflow-hidden whitespace-nowrap text-ellipsis">
<p class="menu-label truncate min-w-0 flex-1">
{{ option.label }}
</p>
</div>
@@ -47,14 +50,14 @@ export default {
<style scoped lang="scss">
.menu {
width: calc(var(--space-mega) * 2);
@apply flex items-center flex-nowrap p-1 rounded-sm overflow-hidden cursor-pointer;
@apply flex items-center flex-nowrap p-1 rounded-md overflow-hidden cursor-pointer;
.menu-label {
@apply my-0 mx-2 text-xs flex-shrink-0;
}
&:hover {
@apply bg-woot-500 dark:bg-woot-500 text-white dark:text-slate-50;
@apply bg-n-brand text-white dark:text-slate-50;
}
}
@@ -63,6 +66,6 @@ export default {
}
.label-pill {
@apply w-4 h-4 rounded-full border border-slate-50 border-solid dark:border-slate-900 flex-shrink-0;
@apply w-4 h-4 rounded-full border border-n-strong border-solid flex-shrink-0;
}
</style>