Skip to content

Commit

Permalink
Library: ellipsize sidebar items
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfactotum committed Dec 13, 2023
1 parent 8458aa5 commit 1afef0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Gio from 'gi://Gio'
import GLib from 'gi://GLib'
import Gdk from 'gi://Gdk'
import GdkPixbuf from 'gi://GdkPixbuf'
import Pango from 'gi://Pango'
import cairo from 'gi://cairo'
import { gettext as _ } from 'gettext'
import * as utils from './utils.js'
Expand Down Expand Up @@ -615,7 +616,9 @@ const SidebarRow = GObject.registerClass({
},
}, class extends Gtk.Box {
#icon = new Gtk.Image()
#label = new Gtk.Label()
#label = new Gtk.Label({
ellipsize: Pango.EllipsizeMode.END,
})
#menu = new Gio.Menu()
#popover = new Gtk.PopoverMenu({
has_arrow: false,
Expand Down

0 comments on commit 1afef0b

Please sign in to comment.