mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-12 22:26:12 -05:00
Better search input alignment for mobile
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
color: var(--color-text-high);
|
||||
font-size: var(--fonts-xs);
|
||||
cursor: pointer;
|
||||
min-width: 180px;
|
||||
height: var(--input-height-small);
|
||||
transition: background-color 0.15s;
|
||||
}
|
||||
@@ -228,7 +227,7 @@
|
||||
font-size: var(--fonts-sm);
|
||||
}
|
||||
|
||||
@media screen and (max-width: 599px) {
|
||||
@media screen and (max-width: 1000px) {
|
||||
.searchKbd {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 900px) {
|
||||
@media screen and (max-width: 1000px) {
|
||||
.container {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,23 @@
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.searchAndAddContainer {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr;
|
||||
gap: var(--s-3);
|
||||
}
|
||||
|
||||
.searchWrapper > button,
|
||||
.addNewWrapper > button {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1000px) {
|
||||
.searchAndAddContainer {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.button {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
|
||||
@@ -33,10 +33,16 @@ export function TopRightButtons({
|
||||
</LinkButton>
|
||||
) : null}
|
||||
{isLoggedIn ? (
|
||||
<>
|
||||
{showSearch ? <CommandPalette /> : null}
|
||||
<AnythingAdder />
|
||||
</>
|
||||
<div className={styles.searchAndAddContainer}>
|
||||
{showSearch ? (
|
||||
<div className={styles.searchWrapper}>
|
||||
<CommandPalette />
|
||||
</div>
|
||||
) : null}
|
||||
<div className={styles.addNewWrapper}>
|
||||
<AnythingAdder />
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<LogInButtonContainer>
|
||||
<SendouButton type="submit" size="small" icon={<LogIn />}>
|
||||
|
||||
Reference in New Issue
Block a user