[frontend] layout tweaks

This commit is contained in:
Lilian 2024-04-30 04:31:44 +02:00
parent a661599edc
commit e4029625d6
No known key found for this signature in database
GPG key ID: 007CA12D692829E1
6 changed files with 17 additions and 15 deletions

View file

@ -11,17 +11,17 @@
</div> </div>
} }
<button class="btn" @onclick:stopPropagation="true"> <button class="btn" @onclick:stopPropagation="true">
<Icon Name="Icons.ArrowUUpLeft"/> <Icon Name="Icons.ArrowUUpLeft" Size="1.3em"/>
</button> </button>
<button class="btn" @onclick:stopPropagation="true"> <button class="btn" @onclick:stopPropagation="true">
<Icon Name="Icons.ArrowsClockwise"/> <Icon Name="Icons.Repeat" Size="1.3em"/>
</button> </button>
<button @onclick="Like" @onclick:stopPropagation="true" class="btn"> <button @onclick="Like" @onclick:stopPropagation="true" class="btn">
@if (IsLiked) @if (IsLiked)
{ {
<Icon Name="Icons.Heart" Pack="IconStyle.Fill"/> <Icon Name="Icons.Heart" Pack="IconStyle.Fill" Size="1.3em"/>
}else { }else {
<Icon Name="Icons.Heart"/> <Icon Name="Icons.Heart" Size="1.3em"/>
} }
@if (Likes > 0) @if (Likes > 0)
{ {
@ -29,10 +29,10 @@
} }
</button> </button>
<button class="btn" @onclick:stopPropagation="true"> <button class="btn" @onclick:stopPropagation="true">
<Icon Name="Icons.Smiley"/> <Icon Name="Icons.Smiley" Size="1.3em"/>
</button> </button>
<button class="btn" @onclick:stopPropagation="true"> <button class="btn" @onclick:stopPropagation="true">
<Icon Name="Icons.DotsThreeOutline"/> <Icon Name="Icons.DotsThreeOutline" Size="1.3em"/>
</button> </button>
</div> </div>
@code { @code {

View file

@ -7,16 +7,16 @@
@switch (Visibility) @switch (Visibility)
{ {
case NoteVisibility.Public: case NoteVisibility.Public:
<Icon Name="Icons.Globe"/> <Icon Name="Icons.Globe" Size="1.3em"/>
break; break;
case NoteVisibility.Home: case NoteVisibility.Home:
<Icon Name="Icons.House"/> <Icon Name="Icons.House" Size="1.3em"/>
break; break;
case NoteVisibility.Followers: case NoteVisibility.Followers:
<Icon Name="Icons.Lock"/> <Icon Name="Icons.Lock" Size="1.3em"/>
break; break;
case NoteVisibility.Specified: case NoteVisibility.Specified:
<Icon Name="Icons.Envelope"/> <Icon Name="Icons.Envelope" Size="1.3em"/>
break; break;
default: default:
throw new ArgumentOutOfRangeException(); throw new ArgumentOutOfRangeException();

View file

@ -6,4 +6,5 @@
width: 100%; width: 100%;
align-items: center; align-items: center;
overflow-anchor: none; overflow-anchor: none;
overscroll-behavior: contain;
} }

View file

@ -1,11 +1,11 @@
.note-container { .note-container {
max-width: 40rem; max-width: 50rem;
min-width: 15rem; min-width: 20rem;
background-color: var(--foreground-color); background-color: var(--foreground-color);
padding: 1.5rem 1.5rem 1rem; /* top, left-right, bottom*/ padding: 1.5rem 1.5rem 1rem; /* top, left-right, bottom*/
border-radius: 0.75rem; border-radius: 0.75rem;
margin-top: 1rem; margin-top: 1rem;
margin-right: 1.5rem; margin-right: 0.5rem;
margin-left: 1.5rem; margin-left: 0.5rem;
width: 100%; width: 100%;
} }

View file

@ -1,4 +1,4 @@
@media (min-width: 701px) { @media (min-width: 701px) {t
.sidebar { .sidebar {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View file

@ -2,6 +2,7 @@
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5; line-height: 1.5;
font-weight: 400; font-weight: 400;
font-size: 15px;
color-scheme: light dark; color-scheme: light dark;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);