Skip to content

Commit

Permalink
Fixed styling a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
deusprogrammer committed Nov 6, 2023
1 parent a77b0dc commit 0b6785b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 14 deletions.
3 changes: 2 additions & 1 deletion src/renderer/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ button.selected {
.clip-table {
display: grid;
grid-template-columns: repeat(auto-fit, 10%);
align-items: end;
align-items: start;
gap: 10px;
}

Expand All @@ -296,6 +296,7 @@ button.selected {

.clip-table img {
width: 100%;
height: 100%;
object-fit: contain;
}

Expand Down
38 changes: 25 additions & 13 deletions src/renderer/components/ClipTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,25 +161,37 @@ export default ({
opFn(collectionId, video._id);
}}
>
<div className={opClass}>
<div
className={opClass}
style={{ height: '10vh' }}
>
<img
src={`game://${game}/${video._id}.jpg`}
/>
</div>
</div>
</div>
{renaming !== video._id ? (
<div>{video._id.replace(/_/g, ' ')}</div>
) : (
<div>
<input
value={newTitle}
onChange={({ target: { value } }) => {
setNewTitle(value);
}}
/>
</div>
)}
<div
style={{
height: '50px',
overflow: 'clip',
}}
>
{renaming !== video._id ? (
<div>{video._id.replace(/_/g, ' ')}</div>
) : (
<div>
<input
value={newTitle}
onChange={({
target: { value },
}) => {
setNewTitle(value);
}}
/>
</div>
)}
</div>
<div>
{includeRename ? (
<>
Expand Down

0 comments on commit 0b6785b

Please sign in to comment.