mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-25 23:17:22 +00:00
Fix navbar and cleanup search suggestions.
This commit is contained in:
parent
9b6e32683f
commit
13a1f352d8
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<nav class="container flex flex-wrap items-center justify-between px-2 sm:px-4 py-2.5 w-full relative">
|
<nav class="flex flex-wrap items-center justify-between px-2 sm:px-4 py-2.5 w-full relative">
|
||||||
<div class="">
|
<div>
|
||||||
<router-link class="flex font-bold text-3xl items-center font-sans font-bold" to="/"
|
<router-link class="flex font-bold text-3xl items-center font-sans font-bold" to="/"
|
||||||
><img
|
><img
|
||||||
alt="logo"
|
alt="logo"
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div class="absolute suggestions-container" :style="[{ background: secondaryBackgroundColor }]">
|
||||||
class="absolute uk-panel uk-box-shadow-large suggestions-container"
|
<ul>
|
||||||
:style="[{ background: secondaryBackgroundColor }]"
|
|
||||||
>
|
|
||||||
<ul class="uk-list uk-margin-remove uk-text-secondary">
|
|
||||||
<li
|
<li
|
||||||
v-for="(suggestion, i) in searchSuggestions"
|
v-for="(suggestion, i) in searchSuggestions"
|
||||||
:key="i"
|
:key="i"
|
||||||
:style="[selected === i ? { background: secondaryForegroundColor } : {}]"
|
:style="[selected === i ? { background: secondaryForegroundColor } : {}]"
|
||||||
class="uk-margin-remove suggestion"
|
class="suggestion"
|
||||||
@mouseover="onMouseOver(i)"
|
@mouseover="onMouseOver(i)"
|
||||||
@mousedown.stop="onClick(i)"
|
@mousedown.stop="onClick(i)"
|
||||||
>
|
>
|
||||||
@ -79,25 +76,10 @@ export default {
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
.suggestions-container {
|
.suggestions-container {
|
||||||
left: 50%;
|
@apply left-1/2 translate-x-[-50%] transform-gpu max-w-3xl w-full box-border p-y-1.25 z-10 <md:max-w-[calc(100%-0.5rem)];
|
||||||
transform: translateX(-50%);
|
|
||||||
max-width: 640px;
|
|
||||||
width: 100%;
|
|
||||||
box-sizing: border-box;
|
|
||||||
padding: 5px 0;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.suggestion {
|
.suggestion {
|
||||||
padding: 4px 15px;
|
@apply p-y-1;
|
||||||
}
|
|
||||||
@media screen and (max-width: 959px) {
|
|
||||||
.suggestions-container {
|
|
||||||
max-width: calc(100% - 60px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media screen and (max-width: 639px) {
|
|
||||||
.suggestions-container {
|
|
||||||
max-width: calc(100% - 30px);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user