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
Unknown Object (File)
Sun, Sep 1, 6:54 PM
Unknown Object (File)
Sun, Sep 1, 6:46 PM
Unknown Object (File)
Sun, Sep 1, 6:12 PM
Unknown Object (File)
Sun, Aug 25, 7:57 PM
Unknown Object (File)
Sun, Aug 18, 12:59 PM
Unknown Object (File)
Sun, Aug 18, 7:59 AM
Unknown Object (File)
Sun, Aug 18, 7:59 AM
Unknown Object (File)
Sun, Aug 18, 7:59 AM

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #10919)

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

153 ↗(On Diff #10919)

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

161 ↗(On Diff #10919)

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

165 ↗(On Diff #10919)

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

168 ↗(On Diff #10919)

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

172 ↗(On Diff #10919)

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

178 ↗(On Diff #10919)

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

187 ↗(On Diff #10919)

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

190 ↗(On Diff #10919)

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

194 ↗(On Diff #10919)

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.