Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/src/assets/scss/form/switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
--el-switch-off-color: #d1d5db; // Gray-300
}

@apply flex grow justify-between items-center ml-4 cursor-pointer;
@apply flex grow-0 justify-between items-center ml-4 cursor-pointer;

// Label
& .el-switch__label {
@apply text-xs text-gray-900 font-medium #{!important};
@apply text-xs text-gray-900 mr-2 font-medium #{!important};
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
<template>
<div class="flex justify-start border-b border-gray-100 p-4">
<div class="flex justify-start items-center border-b border-gray-100 p-4">
<el-switch
v-model="model"
:active-text="modelValue ? 'Include' : 'Exclude'"
class="w-fit flex !justify-start !m-0 filter-include-switch"
size="small"
data-qa="filter-include-switch"
/>

<el-tooltip
content="If excluded, turns the filter into a negative condition"
placement="top"
>
<i class="ri-question-line text-gray-400" />
</el-tooltip>
</div>
</template>

Expand Down