Skip to content

Commit f4f96d7

Browse files
committed
Ellipsize a label with image path
Otherwise it will make the side panel too wide, breaking the whole gui.
1 parent ae627d9 commit f4f96d7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

official/image_path_in_ui.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
--[[
22
This file is part of darktable,
33
copyright (c) 2014 Jérémy Rosen
4-
4+
55
darktable is free software: you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by
77
the Free Software Foundation, either version 3 of the License, or
88
(at your option) any later version.
9-
9+
1010
darktable is distributed in the hope that it will be useful,
1111
but WITHOUT ANY WARRANTY; without even the implied warranty of
1212
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1313
GNU General Public License for more details.
14-
14+
1515
You should have received a copy of the GNU General Public License
1616
along with darktable. If not, see <http://www.gnu.org/licenses/>.
1717
]]
@@ -31,9 +31,9 @@ This plugin will add a widget at the bottom of the left column in lighttable mod
3131
local dt = require "darktable"
3232
dt.configuration.check_version(...,{2,0,0})
3333

34-
local main_label = dt.new_widget("label"){selectable = true}
34+
local main_label = dt.new_widget("label"){selectable = true, ellipsize = "middle", halign = "start"}
3535

36-
local function reset_widget()
36+
local function reset_widget()
3737
local selection = dt.gui.selection()
3838
local result = ""
3939
local array = {}

0 commit comments

Comments
 (0)