Skip to content

Commit c530411

Browse files
committed
fix: set tooltips background color
1 parent 50e05ea commit c530411

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

frontend/src/style.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,12 @@ strong {
319319
border-radius: 6px;
320320
}
321321
}
322+
323+
&.primary-icon:hover {
324+
&::after {
325+
background: var(--ed-color-primary-1a, #1cba901a);
326+
}
327+
}
322328
}
323329

324330
.ed-popper__arrow {

frontend/src/views/dashboard/common/ResourceTree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ defineExpose({
329329
effect="dark"
330330
>
331331
<el-icon
332-
class="custom-icon btn hover-icon_with_bg"
332+
class="custom-icon btn hover-icon_with_bg primary-icon"
333333
@click="addOperation({ opt: 'newLeaf', type: 'dashboard' })"
334334
>
335335
<Icon name="dv-new-folder">

frontend/src/views/system/embedded/iframe.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ const saveHandler = () => {
884884
<div class="code">
885885
<div class="copy">
886886
{{ $t('embedded.code_to_embed') }}
887-
<el-tooltip effect="dark" :content="t('datasource.copy')" placement="top">
887+
<el-tooltip :offset="12" effect="dark" :content="t('datasource.copy')" placement="top">
888888
<el-icon size="16" @click="copyCode">
889889
<icon_copy_outlined></icon_copy_outlined>
890890
</el-icon>
@@ -900,7 +900,7 @@ const saveHandler = () => {
900900
<div class="code">
901901
<div class="copy">
902902
{{ $t('professional.code_for_debugging') }}
903-
<el-tooltip effect="dark" :content="t('datasource.copy')" placement="top">
903+
<el-tooltip :offset="12" effect="dark" :content="t('datasource.copy')" placement="top">
904904
<el-icon size="16" @click="copyJsCode">
905905
<icon_copy_outlined></icon_copy_outlined>
906906
</el-icon>
@@ -916,7 +916,7 @@ const saveHandler = () => {
916916
<div class="code">
917917
<div class="copy">
918918
{{ $t('embedded.code_to_embed') }}
919-
<el-tooltip effect="dark" :content="t('datasource.copy')" placement="top">
919+
<el-tooltip :offset="12" effect="dark" :content="t('datasource.copy')" placement="top">
920920
<el-icon size="16" @click="copyJsCodeFull">
921921
<icon_copy_outlined></icon_copy_outlined>
922922
</el-icon>

frontend/src/views/system/workspace/index.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,12 @@ const handleCurrentChange = (val: number) => {
296296
<div class="select-table_top">
297297
{{ $t('user.workspace') }}
298298

299-
<el-tooltip effect="dark" :content="$t('workspace.add_workspace')" placement="top">
299+
<el-tooltip
300+
:offset="12"
301+
effect="dark"
302+
:content="$t('workspace.add_workspace')"
303+
placement="top"
304+
>
300305
<el-icon size="18" @click="addWorkspace">
301306
<icon_add_outlined></icon_add_outlined>
302307
</el-icon>

0 commit comments

Comments
 (0)