Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 28232db

Browse files
committed
fix styles
1 parent bfd979f commit 28232db

File tree

2 files changed

+2
-30
lines changed

2 files changed

+2
-30
lines changed

src/ui/components/organisms/RepositoryBrowser/DirectoryLine.tsx

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const DirectoryLineContent: React.ComponentClass<
183183
}}
184184
>
185185
<div style={{ display: "flex", flexDirection: "row" }}>
186-
<div style={{ flex: 1 }}>
186+
<div style={{ display: "inline-flex" }}>
187187
<Prefix depth={depth} />
188188
{opened ? (
189189
<Icon icon="folder-open" />
@@ -195,35 +195,6 @@ const DirectoryLineContent: React.ComponentClass<
195195
{basename || `${dirpath}`}
196196
</Pathname>
197197
</div>
198-
{this.state.hovered && (
199-
<HoveredMenu
200-
root={root}
201-
basename={basename}
202-
dirpath={dirpath}
203-
onClickFile={event => {
204-
event.stopPropagation()
205-
this.setState({ opened: true }, () => {
206-
this.props.startFileCreating({
207-
fileCreatingDir: dirpath
208-
})
209-
})
210-
}}
211-
onClickDir={event => {
212-
event.stopPropagation()
213-
this.setState({ opened: true }, () => {
214-
this.props.startDirCreating({
215-
dirCreatingDir: dirpath
216-
})
217-
})
218-
}}
219-
onClickRemove={event => {
220-
event.stopPropagation()
221-
if (window.confirm(`Confirm: delete ${dirpath}`)) {
222-
this.props.deleteDirectory({ dirpath })
223-
}
224-
}}
225-
/>
226-
)}
227198
</div>
228199
</Draggable>
229200
{opened && (

src/ui/components/organisms/RepositoryBrowser/FileLine.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export const FileLine: React.ComponentType<OwnProps> = connector(
9393
>
9494
<Container selected={editingFilepath === filepath}>
9595
<div
96+
style={{ display: "inline-flex" }}
9697
onClick={() => {
9798
props.loadFile({ filepath })
9899
if (props.isMobile) {

0 commit comments

Comments
 (0)