Skip to content

Commit

Permalink
feat: improve input styling and some texts
Browse files Browse the repository at this point in the history
  • Loading branch information
iyzana committed Feb 19, 2023
1 parent 27fd98b commit 24bf04c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion frontend/src/component/Input.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
display: flex;
flex-flow: row nowrap;
align-items: center;
margin-top: calc(-1 * var(--s1));

width: 100%;
background-color: var(--card-alt);
Expand All @@ -12,6 +11,8 @@
.input-text {
width: 100%;
padding: var(--s0);
padding-right: 36px;
margin-right: -36px;
color: var(--fg);
background-color: #444444;
border: none;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/component/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function Input({ addToQueue, working }: InputProps) {
<input
className="input-text"
type="text"
placeholder="Video-Url or YouTube search"
placeholder="Video URL or YouTube search query"
value={input}
onChange={(e) => setInput(e.target.value)}
onKeyUp={onKey}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/component/Player.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
.empty-player {
display: flex;
align-items: center;
font-size: 2rem;
font-size: 2em;
justify-content: center;
border-radius: var(--radius);
border: var(--border) solid var(--card);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/component/Player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function Player() {
return (
<div className="aspect-ratio">
{videoUrl === null ? (
<div className="aspect-ratio-inner empty-player">NO VIDEO</div>
<div className="aspect-ratio-inner empty-player">No Video</div>
) : (
<div className="aspect-ratio-inner">
{isYoutubeUrl(videoUrl) ? (
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/component/Queue.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
min-height: 0;
flex-grow: 1;
padding: 0 var(--s1);
margin-bottom: calc(-1 * var(--s1));

background-color: var(--card);
border-radius: var(--radius) var(--radius) 0 0;
overflow-y: auto;

display: flex;
flex-flow: column nowrap;
}
Expand Down

0 comments on commit 24bf04c

Please sign in to comment.