Page MenuHomePhabricator

[web] First pass at styling `InvalidUploadModal`
ClosedPublic

Authored by atul on Apr 11 2022, 3:26 PM.
Tags
None
Referenced Files
F3298330: D3707.diff
Sun, Nov 17, 5:46 AM
Unknown Object (File)
Fri, Nov 15, 9:05 AM
Unknown Object (File)
Thu, Nov 14, 8:59 AM
Unknown Object (File)
Thu, Nov 14, 8:59 AM
Unknown Object (File)
Wed, Nov 13, 12:48 PM
Unknown Object (File)
Sun, Nov 10, 12:37 AM
Unknown Object (File)
Fri, Nov 8, 8:20 PM
Unknown Object (File)
Fri, Nov 8, 8:20 PM

Details

Summary

Started with styles borrowed from thread-settings-modal.css and made some tweaks so it looks decent.

Before:

323e.png (210×730 px, 32 KB)

After:

c028.png (406×706 px, 38 KB)

Test Plan
  1. Dragged SVG file into message list
  2. Confirmed that the modal looked as expected

Diff Detail

Repository
rCOMM Comm
Branch
landapril13 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Apr 11 2022, 3:31 PM

It looks like it might be beneficial to create a new component (e.g. Prompt?) that is a modal with title, text, and button(s). It could be used in a couple of places.

Edit: looking at the next diffs it seems like a really good idea to have something like that. By doing that we will greatly reduce duplication.

This revision is now accepted and ready to land.Apr 13 2022, 4:20 AM

It looks like it might be beneficial to create a new component (e.g. Prompt?) that is a modal with title, text, and button(s). It could be used in a couple of places.

Yeah I agree, that would reduce a lot of the duplication here... and reduce the amount of work the next time we want to create one of these prompts/alerts.

Created a Linear issue to track that work: https://linear.app/comm/issue/ENG-1003/[web]-introduce-prompt-component