Page MenuHomePhabricator

[web] First pass at styling `InvalidUploadModal`
ClosedPublic

Authored by atul on Apr 11 2022, 3:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 3:26 AM
Unknown Object (File)
Wed, Nov 20, 7:41 PM
Unknown Object (File)
Nov 17 2024, 7:50 AM
Unknown Object (File)
Nov 17 2024, 7:45 AM
Unknown Object (File)
Nov 17 2024, 7:42 AM
Unknown Object (File)
Nov 17 2024, 5:46 AM
Unknown Object (File)
Nov 15 2024, 9:05 AM
Unknown Object (File)
Nov 14 2024, 8:59 AM

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
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