Skip to content

Conversation

emlun
Copy link
Member

@emlun emlun commented Nov 19, 2023

Purpose

Discovered while working on the WebAuthn credentials table in #9175: there's a style on td input[type="checkbox"] that modifies margins for all checkboxes in <table>s. It looks like this style is specially tailored to the particular table that added it (PR #8734), so it should have a correspondingly special-purpose class to not accidentally apply it to other tables.

As best as I could tell there are only 2 instances of <input type="checkbox"> in <td>s, shown in the screenshots below.

Testing

  • Open "Actions > Logging > Debugging Facilities" and observe the vertical spacing of the checkboxes.
  • Open "Edit Folder > Advanced", check "Sync Extended Attributes" or "Send Extended Attributes", click "Add filter entry" and observe the vertical spacing of the checkbox that appears.

Screenshots

Before

Logs > Debugging Facilities
Add filter entry

After

Logs > Debugging Facilities now more compact:
Logs > Debugging Facilities now

Add filter entry unchanged:
Add filter entry

@emlun emlun requested a review from tomasz1986 November 20, 2023 23:16
@calmh calmh merged commit 1f7d236 into syncthing:main Nov 21, 2023
@emlun emlun deleted the checkbox-styles branch November 21, 2023 09:47
calmh added a commit to calmh/syncthing that referenced this pull request Dec 5, 2023
* main:
  lib/fs: Reduce memory usage in xattrs handling (syncthing#9251)
  lib/model: Improve LastSeen handling (syncthing#9256)
  lib/scanner: Record inode change time for directories and symlinks (syncthing#9250)
  lib/api: Improve ignore loading error handling (fixes syncthing#9253) (syncthing#9254)
  gui, man, authors: Update docs, translations, and contributors
  lib/fs: Better equality comparison in mtimefs
  cmd/stcrashreceiver: Add metrics for diskstore inventory
  cmd/stcrashreceiver: Minor cleanup, stricter file permissions
  cmd/stcrashreceiver: Add metrics for incoming reports
  cmd/ursrv: Add metrics for incoming reports
  gui, man, authors: Update docs, translations, and contributors
  gui: Specialize a special-purpose checkbox style (syncthing#9236)
  gui, man, authors: Update docs, translations, and contributors
  build: Support new nested namespaces in Weblate downloads
  lib/model: Acquire fmut lock in ensureIndexHandler (fixes syncthing#9234) (syncthing#9235)
  gui: Allow to translate "unknown device" (syncthing#9229)
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Apr 9, 2025
@syncthing syncthing locked and limited conversation to collaborators Apr 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants