Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Dropdown revert

Manav Rathi20bbd61fce06
diff --git a/web/packages/new/photos/components/DropdownInput.tsx b/web/packages/new/photos/components/DropdownInput.tsx
index 3f101a341a..8a88734005 100644
--- a/web/packages/new/photos/components/DropdownInput.tsx
+++ b/web/packages/new/photos/components/DropdownInput.tsx
@@ -51,6 +51,7 @@ export const DropdownInput = <T extends string>({
onChange={(event: SelectChangeEvent) => {
onSelect(event.target.value as T);
}}
+ variant="outlined"
displayEmpty
renderValue={() => {
// Return the value that is shown in the unexpanded state.
@@ -87,6 +88,17 @@ export const DropdownInput = <T extends string>({
},
},
}}
+ sx={{
+ // Remove the border in the quiescent state.
+ ".MuiOutlinedInput-notchedOutline": {
+ borderColor: "transparent",
+ },
+ // Give the default appearance a background fill, similar to our
+ // text inputs.
+ ".MuiSelect-select": {
+ backgroundColor: "fill.faint",
+ },
+ }}
>
{options.map(({ value, label }) => (
<MenuItem key={value} value={value}>