From 6b8b41c2ff0e6ac4274cb84573e17fd4e6236000 Mon Sep 17 00:00:00 2001 From: laigyu Date: Mon, 8 Apr 2024 18:22:58 +0800 Subject: [PATCH] tooltip style change --- modules/ui/photoviewer.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/ui/photoviewer.js b/modules/ui/photoviewer.js index aa93b5e59..0651a07fa 100644 --- a/modules/ui/photoviewer.js +++ b/modules/ui/photoviewer.js @@ -8,6 +8,7 @@ import { svgIcon } from '../svg/icon'; import { utilGetDimensions } from '../util/dimensions'; import { utilRebind, utilGetSetValue, utilStringQs } from '../util'; import { services } from '../services'; +import { uiTooltip } from './tooltip'; export function uiPhotoviewer(context) { @@ -115,7 +116,15 @@ export function uiPhotoviewer(context) { .attr('class', 'set-photo-from-viewer') .append('div') .call(svgIcon('#iD-operation-merge')) - .attr('title', t('inspector.set_photo_from_viewer')); + .call(uiTooltip() + .title(() => t.append('inspector.set_photo_from_viewer')) + .placement('right') + ); + + buttonEnter + .select('.tooltip') + .classed('dark', true) + .style('width', '300px'); return buttonEnter; }