Style updates
This commit is contained in:
@@ -10,7 +10,7 @@ import WeatherFeaturePill from './WeatherFeaturePill';
|
||||
import WeatherIcon from './WeatherIcon';
|
||||
|
||||
export default function CurrentWeather({ current }: { current: CW }) {
|
||||
const { currentLocation, isMobile, theme } = useCommonHooks();
|
||||
const { currentLocation, isMobile, theme, textShadowStyle } = useCommonHooks();
|
||||
const { data: sunStateData } = useSunStateAPI({
|
||||
lat: currentLocation.lat,
|
||||
lon: currentLocation.lon,
|
||||
@@ -156,9 +156,7 @@ export default function CurrentWeather({ current }: { current: CW }) {
|
||||
classNames={textClasses}
|
||||
style={{
|
||||
textAlign: 'center',
|
||||
textShadow: theme.textShadowsEnabled
|
||||
? '1px 1px 1px color-mix(in srgb, var(--mantine-color-accent-0), transparent 50%)'
|
||||
: undefined,
|
||||
textShadow: theme.textShadowsEnabled ? textShadowStyle : undefined,
|
||||
}}
|
||||
w={'100%'}
|
||||
>
|
||||
@@ -201,9 +199,7 @@ export default function CurrentWeather({ current }: { current: CW }) {
|
||||
classNames={textClasses}
|
||||
style={{
|
||||
textAlign: 'center',
|
||||
textShadow: theme.textShadowsEnabled
|
||||
? '1px 1px 1px color-mix(in srgb, var(--mantine-color-accent-0), transparent 50%)'
|
||||
: undefined,
|
||||
textShadow: theme.textShadowsEnabled ? textShadowStyle : undefined,
|
||||
}}
|
||||
w={'100%'}
|
||||
>
|
||||
@@ -248,9 +244,7 @@ export default function CurrentWeather({ current }: { current: CW }) {
|
||||
classNames={textClasses}
|
||||
style={{
|
||||
textAlign: 'center',
|
||||
textShadow: theme.textShadowsEnabled
|
||||
? '1px 1px 1px color-mix(in srgb, var(--mantine-color-accent-0), transparent 50%)'
|
||||
: undefined,
|
||||
textShadow: theme.textShadowsEnabled ? textShadowStyle : undefined,
|
||||
}}
|
||||
w={'100%'}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user