File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ import { PlayerQueryList } from 'vidstack/local';
1717 * const matches = usePlayerQuery("(width < 680) and (streamType: on-demand)");
1818 * ```
1919 *
20+ * You can also use media queries:
21+ *
22+ * ```ts
23+ * const matches = usePlayerQuery("@media (min-width: 300px)");
24+ * ```
25+ *
2026 * @docs {@link https://www.vidstack.io/docs/player/api/hooks/use-player-query }
2127 */
2228export function usePlayerQuery ( query : string ) : boolean {
Original file line number Diff line number Diff line change 3535 */
3636
3737[data-media-provider ] {
38+ display : flex;
3839 position : relative;
39- display : block;
4040 box-sizing : border-box;
4141}
4242
4343: where ([data-media-provider ]) {
44+ align-items : center;
4445 width : 100% ;
4546}
4647
You can’t perform that action at this time.
0 commit comments