Page MenuHomePhabricator

[web] Move styles in `style.css` used by `ThreadSettingsModal` to `thread-settings-modal.css`
ClosedPublic

Authored by atul on Mar 31 2022, 12:01 PM.
Tags
None
Referenced Files
F2711297: D3591.diff
Sun, Sep 15, 10:33 PM
Unknown Object (File)
Sat, Sep 14, 4:23 AM
Unknown Object (File)
Sat, Sep 14, 4:23 AM
Unknown Object (File)
Sat, Sep 14, 4:23 AM
Unknown Object (File)
Sat, Sep 14, 4:23 AM
Unknown Object (File)
Sat, Sep 14, 4:23 AM
Unknown Object (File)
Sat, Sep 14, 4:19 AM
Unknown Object (File)
Tue, Sep 10, 7:48 PM

Details

Summary

Move the styles used by ThreadSettingsModal in style.css to thread-settings-moda.css (if they aren't used elsewhere in repo, in which case they were copied) and "consume" thread-settings-modal.css in ThreadSettingsModal.

This already gets us closer to where we want to be.

Before:

before.png (574×1 px, 54 KB)

After:

after.png (540×1 px, 51 KB)

Note: The current-tab, delete-tab and modal-radio selectors are neither in style.css nor in user-settings-modal.css (the file that thread-settings-modal.css was copied from). Will handle styling of these selectors in later diff.

Next diffs:

  1. Remove extraneous selectors from thread-settings-modal.css that aren't used in the ThreadSettingsModal component.
  2. Fill in styles that are "used" by ThreadSettingsModal that don't actually exist anywhere in the repo (eg current-tab). Probably by looking through the git history to see what current-tab used to be.
  3. Style the ThreadSettingsModal component so it looks decent.

Depends on D3589

Test Plan

NA, looks closer to what it used to looks like.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Mar 31 2022, 12:09 PM

remove styles that are no longer used in style.css

web/modals/threads/thread-settings-modal.css
145

Can't remove this from style.css because it's consumed by NewThreadModal.

153

Can't remove this from style.css because it's consumed by NewThreadModal.

161

Can't remove this from style.css because it's consumed by NewThreadModal.

165

Can't remove this from style.css because it's consumed by NewThreadModal.

168

Can't remove this from style.css because it's consumed by NewThreadModal.

172

Can't remove this from style.css because it's consumed by NewThreadModal.

178

Can't remove this from style.css because it's consumed by NewThreadModal.

187

Can't remove this from style.css because it's consumed by NewThreadModal.

190

Can't remove this from style.css because it's consumed by NewThreadModal.

194

Searched codebase for css['italic'] and css.italic and didn't find any usages from style.css, so this should be safe to delete.

atul retitled this revision from [web] Copy styles in `style.css` used by `ThreadSettingsModal` to `thread-settings-modal.css` to [web] Move styles in `style.css` used by `ThreadSettingsModal` to `thread-settings-modal.css`.Mar 31 2022, 12:20 PM
atul edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Mar 31 2022, 8:56 PM

It's unfortunate that the regression that broke this styling was ever landed.