Dominic-DallOsto / zotero-reading-list

Keep track of whether you've read items in Zotero
GNU General Public License v3.0
239 stars 6 forks source link

Error adjusting column width in main window #27

Open carlosgalaz opened 4 months ago

carlosgalaz commented 4 months ago

When I try to adjust the position and width of the Read status column, there is a bug that modifies the width of the rest of the columns.

The width of the Read status column cannot be reduced:

image

MacOS Sonoma 14.4.1 Zotero 7.0.0-beta.77+adaa61f2c Zotero Reading List 1.2.0

Dominic-DallOsto commented 4 months ago

Hmm, I don't have this issue on my machine so could I ask for some more details? Can you film a screen recording of you interacting with the status bar. Is this the case only for the Read Status column and not for any others? Do you have any other extensions that also add columns and does the same happen with these?

Thanks!

Dominic-DallOsto commented 4 months ago

I found that I can only reproduce this bug if I update the extension while Zotero is running. Before the update the column resizing works like normal, but afterwards I have the issue you mentioned.

Is it the same for you?

Dominic-DallOsto commented 5 days ago

After some more investigating, I found out that this might be due to a CSS problem:

  1. Add the Read Status column
  2. Restart Zotero
  3. Resizing the column should work normally
  4. Toggle the "Show extension icon instead of "Read Status" as column header" option
  5. The column will be removed and re-added, and now resizing will be broken
  6. Untick the active flex-basis CSS rule for the header div: <div xmlns="http://www.w3.org/1999/xhtml" class="draggable cell reading-list-hotmail-com-readstatus reading-list-hotmail-com-readstatus-item-tree-main-default"> as shown below
  7. Resizing will work normally again

image